import pytest from auth_proxy.app import create_app @pytest.fixture def app_config(): def inner(app): pass return inner @pytest.fixture def app(request, app_config): app = create_app() app.testing = True app_config(app) ctx = app.app_context() ctx.push() @request.addfinalizer def teardown(): ctx.pop() return app