Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.

This commit is contained in:
Armin Ronacher 2011-08-25 15:18:39 +01:00
parent c844d02f1c
commit a5da2c98f3
5 changed files with 112 additions and 4 deletions

View file

@ -706,6 +706,8 @@ class Flask(_PackageBoundObject):
rv = c.get('/?vodka=42')
assert request.args['vodka'] == '42'
See :class:`~flask.testing.TestClient` for more information.
.. versionchanged:: 0.4
added support for `with` block usage for the client.