|
@@ -198,6 +198,7 @@ class TestViews(APITestCase):
|
|
|
self.assertIn('JohnCleese', mail.outbox[0].body)
|
|
|
self.assertEqual(mail.outbox[0].recipients(), ['foo@example.com'])
|
|
|
|
|
|
+ @override_settings(NOTIFICATION_EMAILS=[])
|
|
|
def test_add_contrib_sends_no_author_email(self):
|
|
|
# Send no email if author did not mentioned an email
|
|
|
post_data = self.mk_contrib_post_data()
|
|
@@ -207,6 +208,7 @@ class TestViews(APITestCase):
|
|
|
self.assertEqual(response.status_code, 302)
|
|
|
self.assertEqual(len(mail.outbox), 0)
|
|
|
|
|
|
+ @override_settings(NOTIFICATION_EMAILS=[])
|
|
|
def test_add_contrib_sends_author_email(self):
|
|
|
# Send no email if author did not mentioned an email
|
|
|
response = self.client.post(
|