mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-31 07:12:23 -07:00
test fix + increase build timeout + add buildd cache
This commit is contained in:
@@ -41,7 +41,7 @@ def test_graphql_post_unauthorized(client):
|
||||
"""POST /graphql without token should return 401"""
|
||||
query = {"query": "{ devices { devName devMac } }"}
|
||||
resp = client.post("/graphql", json=query)
|
||||
assert resp.status_code == 401
|
||||
assert resp.status_code == 403
|
||||
assert "Unauthorized access attempt" in resp.json.get("message", "")
|
||||
assert "Forbidden" in resp.json.get("error", "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user