Browse Source

[FIX] mail_tracking_mailgun: Missing error in test

pull/237/head
Pedro M. Baeza 7 years ago
parent
commit
97795a5d28
  1. 4
      mail_tracking_mailgun/tests/test_mailgun.py

4
mail_tracking_mailgun/tests/test_mailgun.py

@ -389,10 +389,10 @@ class TestMailgun(TransactionCase):
def test_email_bounced_set(self): def test_email_bounced_set(self):
message_number = len(self.partner.message_ids) + 1 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.assertEqual(len(self.partner.message_ids), message_number)
self.partner.email = "" 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) self.assertEqual(len(self.partner.message_ids), message_number)
@mock.patch(_packagepath + '.models.mail_tracking_email.requests') @mock.patch(_packagepath + '.models.mail_tracking_email.requests')

Loading…
Cancel
Save