forked from orbit-oss/flask
Alcoholified placeholders
This commit is contained in:
parent
52f38bbf8b
commit
20c2e53893
2 changed files with 6 additions and 6 deletions
|
|
@ -233,8 +233,8 @@ happen. With Flask 0.4 this is possible by using the
|
|||
app = flask.Flask(__name__)
|
||||
|
||||
with app.test_client() as c:
|
||||
rv = c.get('/?foo=42')
|
||||
assert request.args['foo'] == '42'
|
||||
rv = c.get('/?tequila=42')
|
||||
assert request.args['tequila'] == '42'
|
||||
|
||||
If you would just be using 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