mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-12 21:48:35 +03:00
@@ -14,7 +14,7 @@ def test_authorization_header_missing() -> None:
|
||||
|
||||
def test_authorization_header_malformed() -> None:
|
||||
res = client.get("/api/v1", headers={"Authorization": "Bearer"})
|
||||
assert res.status_code == 422
|
||||
assert res.status_code == 401
|
||||
|
||||
|
||||
def test_incorrect_api_key() -> None:
|
||||
@@ -24,4 +24,4 @@ def test_incorrect_api_key() -> None:
|
||||
|
||||
def test_existing_api_key(auth_headers: Dict[str, str]) -> None:
|
||||
res = client.get("/api/v1", headers=auth_headers)
|
||||
assert res.status_code == 200
|
||||
assert res.status_code == 204
|
||||
|
||||
Reference in New Issue
Block a user