Fix inconsistency in testing doc.

This commit is contained in:
Cyker Way 2018-10-29 20:53:39 -04:00
parent 7e714bd28b
commit 43e2d7518d

View file

@ -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'])