Source

lodgeit-main / testing / conftest.py

def app():
    from lodgeit.application import app
    return app


def pytest_funcarg__app(request):
    return app()

def pytest_funcarg__client(request):
    return app().test_client()

def pytest_sessionstart():
    app().debug = True
    app().config['SECRET_KEY'] = '123'