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 ] == checks
@pytest.mark.parametrize("allow,expected", [ @pytest.mark.parametrize(
({"id": "root"}, 403), "allow,expected",
({"id": "root", "unauthenticated": True}, 200), [({"id": "root"}, 403), ({"id": "root", "unauthenticated": True}, 200),],
]) )
def test_allow_unauthenticated(allow, expected): def test_allow_unauthenticated(allow, expected):
with make_app_client( with make_app_client(metadata={"allow": allow}) as client:
metadata={
"allow": allow
}
) as client:
assert expected == client.get("/").status assert expected == client.get("/").status