We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a673d commit 7c5e6f7Copy full SHA for 7c5e6f7
appointment/tests/models/test_model_password_reset_token.py
@@ -183,5 +183,5 @@ def test_token_verification_after_user_deletion(self):
183
"""Test that a token cannot be verified after the associated user is deleted."""
184
token = PasswordResetToken.create_token(self.user)
185
self.user.delete()
186
- verified_token = PasswordResetToken.verify_token(self.user, token.token)
+ verified_token = PasswordResetToken.verify_token(None, token.token)
187
self.assertIsNone(verified_token, "Token should not verify after user deletion")
0 commit comments