Add authorization
This commit is contained in:
12
test/test_auth.py
Normal file
12
test/test_auth.py
Normal 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
|
||||
Reference in New Issue
Block a user