quiz-the-word/tests/test_admin.py

12 lines
346 B
Python
Raw Normal View History

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