Add authorization

This commit is contained in:
2025-10-23 11:22:27 +02:00
parent a1563b53ac
commit e1c8b4ebeb
7 changed files with 82 additions and 9 deletions

12
test/test_auth.py Normal file
View File

@@ -0,0 +1,12 @@
from allmende_payment_system.models import Account
def test_unauthorized_access(unauthorized_client):
response = unauthorized_client.get("/")
assert response.status_code == 401
def test_unauthorized_access(unauthorized_client):
response = unauthorized_client.get("/")
print(response.text)
assert response.status_code == 401