Upgrade edx-ace and edx-django-sites-extensions (#22535)

This commit is contained in:
Jeremy Bowman
2019-12-18 14:07:20 -05:00
committed by GitHub
parent 0e5f95c8bc
commit 072b3c11a1
7 changed files with 23 additions and 23 deletions

View File

@@ -292,7 +292,7 @@ class EmailChangeRequestTests(EventTestMixin, EmailTemplateTagMixin, CacheIsolat
"""
self.assertEqual(self.do_email_validation(self.user.email), 'Old email is the same as the new email.')
@patch('django.core.mail.send_mail')
@patch('django.core.mail.EmailMultiAlternatives.send')
def test_email_failure(self, send_mail):
"""
Test the return value if sending the email for the user to click fails.
@@ -590,7 +590,7 @@ class SecondaryEmailChangeRequestTests(EventTestMixin, EmailTemplateTagMixin, Ca
for email in ('bad_email', 'bad_email@', '@bad_email'):
self.assertEqual(self.do_email_validation(email), 'Valid e-mail address required.')
@patch('django.core.mail.send_mail')
@patch('django.core.mail.EmailMultiAlternatives.send')
def test_email_failure(self, send_mail):
"""
Test the return value if sending the email for the user to click fails.