contentdb/app/tests/test_homepage.py

12 lines
237 B
Python
Raw Normal View History

2020-01-19 16:03:38 +01:00
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