We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7fae7 commit bd00a24Copy full SHA for bd00a24
2 files changed
main.py
@@ -1,5 +1,4 @@
1
from fastapi import FastAPI
2
-from fastapi import APIRouter as auth_router
3
4
from src.routers.general import router as general_router
5
from src.routers.auth import router as auth_router
tests/test_routes.py tests/test_endpoints.pytests/test_routes.py renamed to tests/test_endpoints.py
@@ -1,6 +1,3 @@
-from src.routers import auth, general
-
def test_read_protected_route_success(client, valid_token):
"""
6
Checks if /protected answers 200 of token is valid.
@@ -25,9 +22,6 @@ def test_read_protected_route_no_token(client):
25
22
Validates that user without valid token is thrown out.
26
23
27
24
28
- # Arrange
29
- auth_header = {"Authorization"}
30
31
# Act
32
response = client.get("/protected")
33
0 commit comments