From 3eb4152b0e904db3f9b80f4eee72ca754ac633c5 Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Sun, 18 Sep 2022 19:13:00 +0800 Subject: [PATCH] Fix docstring of test_request_context 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