Improve the code example in testing docs
This commit is contained in:
parent
aac67289e5
commit
40ec39e521
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ happen. With Flask 0.4 this is possible by using the
|
|||
|
||||
with app.test_client() as c:
|
||||
rv = c.get('/?tequila=42')
|
||||
assert request.args['tequila'] == '42'
|
||||
assert flask.request.args['tequila'] == '42'
|
||||
|
||||
If you were to use just the :meth:`~flask.Flask.test_client` without
|
||||
the ``with`` block, the ``assert`` would fail with an error because `request`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue