Skip to content

Commit

Permalink
updated test_put_user_update_password_failure test
Browse files Browse the repository at this point in the history
  • Loading branch information
ktabouguia committed Oct 13, 2018
1 parent a02f300 commit 2ff785d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/api/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ def test_put_users_update_password__failure(server):
headers={'Authorization': token})
assert response.status == 400

_, response = server.app.test_client.put(
f'/users/{username}',
data=json.dumps({
'old_password': 'WrongPassword!',
'password': 'Val1dPassword!123',
}),
headers={'Authorization': token})
assert response.status == 401

def test_login__success(server):
_, response = server.app.test_client.post(
Expand Down

0 comments on commit 2ff785d

Please sign in to comment.