forked from orbit-oss/flask
Merge remote-tracking branch 'origin/1.1.x'
This commit is contained in:
commit
a83d6d2528
2 changed files with 10 additions and 4 deletions
|
|
@ -170,8 +170,8 @@ will not fail.
|
|||
|
||||
During testing, it can be useful to defer popping the contexts after the
|
||||
request ends, so that their data can be accessed in the test function.
|
||||
Using the :meth:`~Flask.test_client` as a ``with`` block to preserve the
|
||||
contexts until the with block exits.
|
||||
Use the :meth:`~Flask.test_client` as a ``with`` block to preserve the
|
||||
contexts until the ``with`` block exits.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue