[IMP] mail_tracking: Adapt test to set (not order preserved)
This commit is contained in:
parent
ef83aacf9a
commit
f67c1d5fe1
@ -54,8 +54,8 @@ msgid "Bounced"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: mail_tracking
|
#. module: mail_tracking
|
||||||
#: code:addons/mail_tracking/models/mail_thread.py:36
|
#: code:addons/mail_tracking/models/mail_thread.py:39
|
||||||
#: code:addons/mail_tracking/models/mail_thread.py:41
|
#: code:addons/mail_tracking/models/mail_thread.py:43
|
||||||
#: model:ir.model.fields,field_description:mail_tracking.field_mail_compose_message__email_cc
|
#: model:ir.model.fields,field_description:mail_tracking.field_mail_compose_message__email_cc
|
||||||
#: model:ir.model.fields,field_description:mail_tracking.field_mail_message__email_cc
|
#: model:ir.model.fields,field_description:mail_tracking.field_mail_message__email_cc
|
||||||
#, python-format
|
#, python-format
|
||||||
|
@ -138,8 +138,10 @@ class TestMailTracking(TransactionCase):
|
|||||||
self.assertFalse(email_cc[1])
|
self.assertFalse(email_cc[1])
|
||||||
# suggested recipients
|
# suggested recipients
|
||||||
recipients = self.recipient.message_get_suggested_recipients()
|
recipients = self.recipient.message_get_suggested_recipients()
|
||||||
self.assertEqual(recipients[self.recipient.id][0][1],
|
suggested_mails = {
|
||||||
'unnamed@test.com')
|
email[1] for email in recipients[self.recipient.id]
|
||||||
|
}
|
||||||
|
self.assertTrue('unnamed@test.com' in suggested_mails)
|
||||||
self.assertEqual(len(recipients[self.recipient.id][0]), 3)
|
self.assertEqual(len(recipients[self.recipient.id][0]), 3)
|
||||||
# Repeated Cc recipients
|
# Repeated Cc recipients
|
||||||
message = self.env['mail.message'].create({
|
message = self.env['mail.message'].create({
|
||||||
|
Loading…
Reference in New Issue
Block a user