mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-13 05:58:35 +03:00
refactor: simplify type annotations
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from typing import Dict
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.web.main import app
|
||||
@@ -22,6 +20,6 @@ def test_incorrect_api_key() -> None:
|
||||
assert res.status_code == 401
|
||||
|
||||
|
||||
def test_existing_api_key(auth_headers: Dict[str, str]) -> None:
|
||||
def test_existing_api_key(auth_headers: dict[str, str]) -> None:
|
||||
res = client.get("/api/v1", headers=auth_headers)
|
||||
assert res.status_code == 204
|
||||
|
||||
Reference in New Issue
Block a user