Skip to content
Myr

Fix docstring of test_request_context (#4821)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add missing `app.`.

authored by Yang Yang · committed by GitHub · parent 9c3deee · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/flask/app.py+1 added-1 removed
2446 unmodified lines
2447 Use a ``with`` block to push the context, which will make2448 :data:`request` point at the request for the created2449 environment. ::24502451 with test_request_context(...):2451 with app.test_request_context(...):2452 generate_report()24532454 When using the shell, it may be easier to push and pop the2455 context manually to avoid indentation. ::
93 unmodified lines