File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments