import pytest
from home_service import create_app


@pytest.fixture
def app():
    app = create_app(testing=True)
    yield app


@pytest.fixture
def app_notest():
    app = create_app(testing=False)
    yield app


@pytest.fixture
def client(app):
    return app.test_client()


@pytest.fixture
def client_notest(app_notest):
    return app_notest.test_client()


@pytest.fixture
def runner(app):
    return app.test_cli_runner()
