Skip to content

Commit

Permalink
Make user.forget_password two-email test safer (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom authored Sep 29, 2023
1 parent a314f8c commit 39bdb82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/system/action/user/test_forget_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def test_forget_password_two_users_with_email(self) -> None:
"For completeness your username: test2" in handler.emails[1]["data"]
or "For completeness your username: admin" in handler.emails[1]["data"]
)
assert ("test2" in handler.emails[0]["data"]) != (
"test2" in handler.emails[1]["data"]
)
assert "https://openslides.example.com" in handler.emails[1]["data"]

def test_forget_password_no_user_found(self) -> None:
Expand Down

0 comments on commit 39bdb82

Please sign in to comment.