fix: Added the condition on body_type in test_reset_password

This commit is contained in:
Jawayria
2021-09-10 18:14:07 +05:00
parent 475a6af2af
commit dee102a70b

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