Merge pull request #2976 from cykerway/master

Fix inconsistency in testing doc.
This commit is contained in:
David Lord 2018-11-13 14:06:12 -05:00 committed by GitHub
commit dcc02d6e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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