mirror of https://github.com/pallets/flask.git
Merge pull request #2976 from cykerway/master
Fix inconsistency in testing doc.
This commit is contained in:
commit
dcc02d6e7d
|
|
@ -388,7 +388,7 @@ very convenient::
|
|||
|
||||
with app.test_client() as c:
|
||||
rv = c.post('/api/auth', json={
|
||||
'username': 'flask', 'password': 'secret'
|
||||
'email': 'flask@example.com', 'password': 'secret'
|
||||
})
|
||||
json_data = rv.get_json()
|
||||
assert verify_token(email, json_data['token'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue