Skip to content

Commit

Permalink
Add test for enabling a non-existing user
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter committed Nov 11, 2021
1 parent bd9f7d4 commit 63f5297
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def test_enable_user(_admin):
assert status == 400
assert not response.json.get("success")
assert response.json.get("message") == "Cannot change the status of Admin user!"
response, status = enable_user("abcdefxyz", "True")
assert status == 404
assert response.json.get("message") == "User not found"


def test_bad_attempt_to_disable_user(_admin):
Expand Down

0 comments on commit 63f5297

Please sign in to comment.