12 lines
313 B
Python
12 lines
313 B
Python
from allmende_payment_system.models import Account
|
|
|
|
|
|
def test_unauthorized_access(unauthorized_client, test_db):
|
|
response = unauthorized_client.get("/")
|
|
assert response.status_code == 401
|
|
|
|
|
|
def test_authorized_access(client, test_db):
|
|
response = client.get("/")
|
|
assert response.status_code == 200
|