feat: upgrade tooling, fix lints

This commit is contained in:
Felix Spöttel
2023-01-25 16:56:59 +01:00
parent b4e57451e8
commit 8669a18110
17 changed files with 159 additions and 68 deletions

View File

@@ -2,7 +2,6 @@ from typing import Dict
from fastapi.testclient import TestClient
from app.shared.config import settings
from app.web.main import app
client = TestClient(app)
@@ -19,7 +18,7 @@ def test_authorization_header_malformed() -> None:
def test_incorrect_api_key() -> None:
res = client.get("/api/v1", headers={"Authorization": "Bearer incorrect" })
res = client.get("/api/v1", headers={"Authorization": "Bearer incorrect"})
assert res.status_code == 401