diff --git a/src/flask/app.py b/src/flask/app.py index db442c9e..ce4dcf6a 100644 --- a/src/flask/app.py +++ b/src/flask/app.py @@ -2448,7 +2448,7 @@ class Flask(Scaffold): :data:`request` point at the request for the created environment. :: - with test_request_context(...): + with app.test_request_context(...): generate_report() When using the shell, it may be easier to push and pop the