diff options
Diffstat (limited to 'app/tests/test_homepage.py')
-rw-r--r-- | app/tests/test_homepage.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/tests/test_homepage.py b/app/tests/test_homepage.py new file mode 100644 index 0000000..f0f6793 --- /dev/null +++ b/app/tests/test_homepage.py @@ -0,0 +1,11 @@ +import pytest +from app import app +from utils import client, recreate_db + +def test_homepage_ok(client): + """Start with a blank database.""" + + assert app.config["TESTING"] + + rv = client.get("/") + assert b"No packages available" in rv.data |