File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def test_password_pattern() -> None:
123
123
password += random .choice (required_elements [other_element ])
124
124
# Randomize the order of the characters in the string
125
125
password = '' .join (random .sample (password , len (password )))
126
- assert re .match (COMPILED_PASSWORD_PATTERN , password ) is not None , f"Password { password } does not match the pattern"
126
+ assert re .match (COMPILED_PASSWORD_PATTERN , password ) is not None , f"Password { password } does not match the pattern"
127
127
128
128
# Invalid password tests
129
129
@@ -213,7 +213,7 @@ def test_send_email_update_confirmation(mock_send: MagicMock) -> None:
213
213
214
214
# Test existing token case
215
215
session .reset_mock ()
216
- session .exec .return_value .first .return_value = EmailUpdateToken () # Existing token
216
+ session .exec .return_value .first .return_value = EmailUpdateToken (account_id = account_id )
217
217
218
218
send_email_update_confirmation (current_email , new_email , account_id , session )
219
219
You can’t perform that action at this time.
0 commit comments