Flask app.config during unit testing Flask app.config during unit testing flask flask

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()