forked from orbit-oss/flask
Fix inconsistency in testing doc.
This commit is contained in:
parent
7e714bd28b
commit
43e2d7518d
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ very convenient::
|
||||||
|
|
||||||
with app.test_client() as c:
|
with app.test_client() as c:
|
||||||
rv = c.post('/api/auth', json={
|
rv = c.post('/api/auth', json={
|
||||||
'username': 'flask', 'password': 'secret'
|
'email': 'flask@example.com', 'password': 'secret'
|
||||||
})
|
})
|
||||||
json_data = rv.get_json()
|
json_data = rv.get_json()
|
||||||
assert verify_token(email, json_data['token'])
|
assert verify_token(email, json_data['token'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue