From 0d8c8ba71bc6362e6ea9af08146dc97e1a0a8abc Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Sun, 18 Sep 2022 19:53:47 +0800 Subject: [PATCH] Fix docstring of test_request_context (#4821) Add missing `app.`. --- src/flask/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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