11 lines
391 B
Python
11 lines
391 B
Python
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
|