kopia lustrzana https://github.com/simonw/datasette
fmt: off to fix problem with Black, closes #2231
rodzic
0f63cb83ed
commit
a25bf6bea7
|
@ -105,7 +105,7 @@ 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():
|
||||
|
@ -113,8 +113,6 @@ async def test_homepage():
|
|||
response = await ds.client.get("/")
|
||||
html = response.text
|
||||
assert "<h1>" in html
|
||||
|
||||
|
||||
# -- end test_homepage --
|
||||
|
||||
|
||||
|
@ -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 --
|
||||
|
||||
|
||||
|
@ -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 --
|
||||
|
|
Ładowanie…
Reference in New Issue