Skip to content

Commit

Permalink
adjust test_reset_email_user_deleted for None instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Jul 1, 2024
1 parent 4f5f8de commit a6e7081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/app/managers/test_UserManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_reset_email_user_deleted(self):
self.user_manager.delete(user)
assert user.deleted is True
message = self.user_manager.send_reset_email(self.trans, {"email": user_email})
assert message == "Failed to produce password reset token. User not found."
assert message == None

def test_get_user_by_identity(self):
# return None if username/email not found
Expand Down

0 comments on commit a6e7081

Please sign in to comment.