Fix docstring of test_request_context (#4821)

Add missing `app.`.
This commit is contained in:
Yang Yang 2022-09-18 19:53:47 +08:00 committed by GitHub
parent 9c3deeee96
commit 0d8c8ba71b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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