Jocelyn Delalande il y a 6 ans
Parent
commit
5b3b794e7d
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      wifiwithme/apps/contribmap/tests.py

+ 2 - 0
wifiwithme/apps/contribmap/tests.py

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