Files
allmende-payment-system/test/test_auth.py

12 lines
295 B
Python

from allmende_payment_system.models import Account
def test_unauthorized_access(unauthorized_client):
response = unauthorized_client.get("/")
assert response.status_code == 401
def test_authorized_access(client):
response = client.get("/")
assert response.status_code == 200