Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
laperlej committed Jun 28, 2024
1 parent a475dfd commit beb7054
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit/app/managers/test_UserManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ def validate_send_email(frm, to, subject, body, config, html=None):
assert result is None

def test_reset_email_user_deleted(self):
self.trans.app.config.allow_user_deletion = True
self.log("should not produce the password reset email if user is deleted")
user_email = "[email protected]"
user = self.user_manager.create(email=user_email, username="nopassword")
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."
self.trans.app.config.allow_user_deletion = True
self.log("should not produce the password reset email if user is deleted")
user_email = "[email protected]"
user = self.user_manager.create(email=user_email, username="nopassword")
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."

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

0 comments on commit beb7054

Please sign in to comment.