23 lines
737 B
Python
23 lines
737 B
Python
def test_admin_nav_visible_on_users(auth_client):
|
|
response = auth_client.get('/admin/users')
|
|
body = response.get_data(as_text=True)
|
|
assert response.status_code == 200
|
|
assert 'Logi audytu' in body
|
|
assert 'Firmy' in body
|
|
|
|
|
|
def test_admin_nav_visible_on_companies(auth_client):
|
|
response = auth_client.get('/admin/companies')
|
|
body = response.get_data(as_text=True)
|
|
assert response.status_code == 200
|
|
assert 'Użytkownicy' in body
|
|
assert 'Logi audytu' in body
|
|
|
|
|
|
def test_admin_nav_visible_on_audit(auth_client):
|
|
response = auth_client.get('/admin/audit')
|
|
body = response.get_data(as_text=True)
|
|
assert response.status_code == 200
|
|
assert 'Użytkownicy' in body
|
|
assert 'Firmy' in body
|