Commit fa11e76d authored by G.Tjebbes's avatar G.Tjebbes

Fix tests ont api key

parent 99987a38
Pipeline #126711 failed with stage
in 5 minutes and 17 seconds
......@@ -92,4 +92,5 @@ def test_api_key_authentication(request, settings):
assert api(None, request)
api = ApiKeyAuthenticationPredicate('wrongkey', None)
assert not api(None, request)
with pytest.raises(Exception):
api(None, request)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment