Skip to content

Commit e959fd9

Browse files
committed
additional debugging
1 parent 48e9a18 commit e959fd9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ class DummyNotification(EmailNotification):
8484
self.assertIsNone(obj.text_content)
8585

8686
def test_real_send(self):
87-
MyNotification().send()
87+
MyNotification().send(raise_exception=True)
8888
self.assertEqual(len(mail.outbox), 1)
8989
self.assertEqual(mail.outbox[0].to, ["test@test.com"])
9090

9191
def test_real_send_attachments(self):
92-
MyNotification().send()
92+
MyNotification().send(raise_exception=True)
9393
self.assertEqual(len(mail.outbox), 1)
9494
self.assertEqual(mail.outbox[0].attachments[0][1], "Some Report Data")
9595

tests/test_usernotifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_send_disabled(self):
3838
)
3939

4040
def test_send_enabled(self):
41-
result = MyNotification().send(user=self.user)
41+
result = MyNotification().send(user=self.user, raise_exception=True)
4242
self.assertTrue(result, True)
4343

4444
sent_notification = SentNotification.objects.all()[0]
@@ -54,7 +54,7 @@ def setUp(self):
5454
self.user.save()
5555

5656
def test_send_enabled(self):
57-
result = MyNotification().send(user=self.user)
57+
result = MyNotification().send(user=self.user, raise_exception=True)
5858
self.assertTrue(result, True)
5959

6060
sent_notification = SentNotification.objects.all()[0]

0 commit comments

Comments
 (0)