Skip to content

Commit 9e980d8

Browse files
committed
Lint, style and fix existing test
Signed-off-by: Federico Busetti <[email protected]>
1 parent 39d5e2f commit 9e980d8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/http_app/routes/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import Annotated, Any, Optional
1+
from typing import Annotated, Optional
22

33
import jwt
4-
from fastapi import Depends, HTTPException, Request, status
4+
from fastapi import Depends, HTTPException, status
55
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer, SecurityScopes
66

77
from common import AppConfig

tests/http_app/routes/test_hello.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
from fastapi import status
12
from fastapi.testclient import TestClient
23

34

4-
async def test_root(testapp):
5+
async def test_hello_no_authentication_server(testapp):
56
ac = TestClient(app=testapp, base_url="http://test")
67
response = ac.get("/hello/")
7-
assert response.status_code == 200
8+
assert response.status_code == status.HTTP_500_INTERNAL_SERVER_ERROR

0 commit comments

Comments
 (0)