Flask app.config during unit testing
You are using accessing the app within an app context when you call some_method() to fix it replace your call with:
with app.app_context(): value = some_method()
You are using accessing the app within an app context when you call some_method() to fix it replace your call with:
with app.app_context(): value = some_method()