Merge pull request #28709 from edx/jawayria/fix-check
fix: Added the condition on body_type in test_reset_password
This commit is contained in:
@@ -284,7 +284,7 @@ class ResetPasswordTests(EventTestMixin, CacheIsolationTestCase):
|
||||
|
||||
body = bodies[body_type]
|
||||
|
||||
if django.VERSION >= (3, 0):
|
||||
if django.VERSION >= (3, 0) and body_type == 'html':
|
||||
expected_output = "You're receiving this e-mail because you requested a password reset"
|
||||
|
||||
assert 'Password reset' in sent_message.subject
|
||||
|
||||
Reference in New Issue
Block a user