Applied Black

Refs #825
This commit is contained in:
Simon Willison 2020-06-09 12:25:44 -07:00
commit 5ef3b7b0c9

View file

@ -309,14 +309,10 @@ def test_permissions_debug(app_client):
] == checks
@pytest.mark.parametrize("allow,expected", [
({"id": "root"}, 403),
({"id": "root", "unauthenticated": True}, 200),
])
@pytest.mark.parametrize(
"allow,expected",
[({"id": "root"}, 403), ({"id": "root", "unauthenticated": True}, 200),],
)
def test_allow_unauthenticated(allow, expected):
with make_app_client(
metadata={
"allow": allow
}
) as client:
with make_app_client(metadata={"allow": allow}) as client:
assert expected == client.get("/").status