import pytest from web import app @pytest.fixture def client(): with app.test_client() as client: yield client def test_landing_page(client): rv = client.get('/') assert b'Hello, World' in rv.data