Skip to content

Commit 3f56a2a

Browse files
mypy lint fix
1 parent 289d9f5 commit 3f56a2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_password_pattern() -> None:
123123
password += random.choice(required_elements[other_element])
124124
# Randomize the order of the characters in the string
125125
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"
127127

128128
# Invalid password tests
129129

@@ -213,7 +213,7 @@ def test_send_email_update_confirmation(mock_send: MagicMock) -> None:
213213

214214
# Test existing token case
215215
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)
217217

218218
send_email_update_confirmation(current_email, new_email, account_id, session)
219219

0 commit comments

Comments
 (0)