Skip to content

Commit

Permalink
fmt: off to fix problem with Black, closes #2231
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 10, 2024
1 parent 0f63cb8 commit a25bf6b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,14 @@ def test_functions_marked_with_documented_are_documented(documented_fns, fn):

# Tests for testing_plugins.rst documentation


# fmt: off
# -- start test_homepage --
@pytest.mark.asyncio
async def test_homepage():
ds = Datasette(memory=True)
response = await ds.client.get("/")
html = response.text
assert "<h1>" in html


# -- end test_homepage --


Expand All @@ -124,8 +122,6 @@ async def test_actor_is_null():
ds = Datasette(memory=True)
response = await ds.client.get("/-/actor.json")
assert response.json() == {"actor": None}


# -- end test_actor_is_null --


Expand All @@ -136,6 +132,4 @@ async def test_signed_cookie_actor():
cookies = {"ds_actor": ds.client.actor_cookie({"id": "root"})}
response = await ds.client.get("/-/actor.json", cookies=cookies)
assert response.json() == {"actor": {"id": "root"}}


# -- end test_signed_cookie_actor --

0 comments on commit a25bf6b

Please sign in to comment.