import pytest from app.run import app as tapp @pytest.fixture(scope='session') def app(request): ctx = tapp.app_context() ctx.push()