Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.
This commit is contained in:
parent
c844d02f1c
commit
a5da2c98f3
5 changed files with 112 additions and 4 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue