From 9f4c569c83f3f00f43a8ea975821c405ab0057f0 Mon Sep 17 00:00:00 2001 From: Benjamin Dopplinger Date: Mon, 9 May 2016 13:37:27 +1000 Subject: [PATCH] Fix "with" formatting in doc --- flask/testing.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flask/testing.py b/flask/testing.py index 54ce20ef..8eacf58b 100644 --- a/flask/testing.py +++ b/flask/testing.py @@ -39,8 +39,9 @@ def make_test_environ_builder(app, path='/', base_url=None, *args, **kwargs): class FlaskClient(Client): """Works like a regular Werkzeug test client but has some knowledge about how Flask works to defer the cleanup of the request context stack to the - end of a with body when used in a with statement. For general information - about how to use this class refer to :class:`werkzeug.test.Client`. + end of a ``with`` body when used in a ``with`` statement. For general + information about how to use this class refer to + :class:`werkzeug.test.Client`. Basic usage is outlined in the :ref:`testing` chapter. """ @@ -49,9 +50,9 @@ class FlaskClient(Client): @contextmanager def session_transaction(self, *args, **kwargs): - """When used in combination with a with statement this opens a + """When used in combination with a ``with`` statement this opens a session transaction. This can be used to modify the session that - the test client uses. Once the with block is left the session is + the test client uses. Once the ``with`` block is left the session is stored back. ::