12 lines
346 B
Python
12 lines
346 B
Python
|
from flask.testing import FlaskClient
|
||
|
|
||
|
|
||
|
def test_admin_home_with_basic_user(client: FlaskClient, login_basic_user):
|
||
|
response = client.get("/admin/")
|
||
|
assert response.status_code == 403
|
||
|
|
||
|
|
||
|
def test_admin_home_with_admin_user(client: FlaskClient, login_admin_user):
|
||
|
response = client.get("/admin/")
|
||
|
assert response.status_code == 200
|