push
This commit is contained in:
10
tests/test_auth.py
Normal file
10
tests/test_auth.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def test_login_page(client):
|
||||
response = client.get('/auth/login')
|
||||
assert response.status_code == 200
|
||||
assert b'Logowanie' in response.data
|
||||
|
||||
|
||||
def test_login_success(client):
|
||||
response = client.post('/auth/login', data={'email': 'admin@example.com', 'password': 'Admin123!'}, follow_redirects=True)
|
||||
assert response.status_code == 200
|
||||
assert b'Dashboard' in response.data
|
||||
Reference in New Issue
Block a user