Browse Source

[FIX] mail_tracking_mailgun: Missing error in test

pull/272/head
Pedro M. Baeza 7 years ago
committed by David
parent
commit
183bb61feb
  1. 4
      mail_tracking_mailgun/tests/test_mailgun.py

4
mail_tracking_mailgun/tests/test_mailgun.py

@ -381,10 +381,10 @@ class TestMailgun(TransactionCase):
def test_email_bounced_set(self):
message_number = len(self.partner.message_ids) + 1
self.partner._email_bounced_set('test_error', self.event)
self.partner._email_bounced_set('test_error', False)
self.assertEqual(len(self.partner.message_ids), message_number)
self.partner.email = ""
self.partner._email_bounced_set('test_error')
self.partner._email_bounced_set('test_error', False)
self.assertEqual(len(self.partner.message_ids), message_number)
@mock.patch(_packagepath + '.models.mail_tracking_email.requests')

Loading…
Cancel
Save