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:
Jawayria
2021-09-13 16:15:08 +05:00
committed by GitHub

View File

@@ -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