Flask - Testing Flask Applications
This fixture causes tests to fail with RuntimeError: Working outside of application context. What is missing?
@pytest.fixture
def client():
app = Flask(__name__)
return app.test_client()