Skip to content
Myr

Fix "with" formatting in doc

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

authored by Benjamin Dopplinger · committed by Benjamin Dopplinger · parent e8bd2c9 · Browse files · 1 file+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:flask/testing.py+5 added-4 removed
37 unmodified lines
3839class FlaskClient(Client):40 """Works like a regular Werkzeug test client but has some knowledge about41 how Flask works to defer the cleanup of the request context stack to the42 end of a with body when used in a with statement. For general information43 about how to use this class refer to :class:`werkzeug.test.Client`.42 end of a ``with`` body when used in a ``with`` statement. For general43 information about how to use this class refer to44 :class:`werkzeug.test.Client`.4546 Basic usage is outlined in the :ref:`testing` chapter.47 """4849 preserve_context = False5051 @contextmanager52 def session_transaction(self, *args, **kwargs):52 """When used in combination with a with statement this opens a53 """When used in combination with a ``with`` statement this opens a54 session transaction. This can be used to modify the session that54 the test client uses. Once the with block is left the session is55 the test client uses. Once the ``with`` block is left the session is56 stored back.5758 ::59
70 unmodified lines