diff --git a/tests/__pycache__/test_website.cpython-311-pytest-7.4.0.pyc b/tests/__pycache__/test_website.cpython-311-pytest-7.4.0.pyc index 37b5f78..90572f7 100644 Binary files a/tests/__pycache__/test_website.cpython-311-pytest-7.4.0.pyc and b/tests/__pycache__/test_website.cpython-311-pytest-7.4.0.pyc differ diff --git a/tests/test_website.py b/tests/test_website.py index 3af725e..58df1c8 100644 --- a/tests/test_website.py +++ b/tests/test_website.py @@ -17,6 +17,10 @@ def test_favicon(client): response = client.get("/favicon.ico") assert response.status_code == 200 +def test_index(client): + response = client.get("/") + assert 'window.location="/list"' in response.data.decode('utf-8') + #/adduser def test_adduser(client): response = client.get('/adduser/user')