<reponame>astaugaard/Webapp2022<gh_stars>0
import pytest
from app import create_app


@pytest.fixture
def client():
    app = create_app()
    app.testing = True
    with app.test_client() as client:
        yield client


def test_home_page_request(client):
    res = client.get("/")
    assert res.status_code == 200
import pytest
from app import create_app


@pytest.fixture
def client():
    app = create_app()
    app.testing = True
    with app.test_client() as client:
        yield client


def test_home_page_request(client):
    res = client.get("/")
    assert res.status_code == 200