Browse Source

Fix inconsistency in testing doc.

pull/2976/head
Cyker Way 6 years ago
parent
commit
43e2d7518d
  1. 2
      docs/testing.rst

2
docs/testing.rst

@ -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…
Cancel
Save