[FIX] crm: check if attendees are present
Check if the attendees are correctly present. We replace assertEqual by assertIn to be sure that the order of the attendee doesn't have an impact on the test task-2287846 COM PR: odoo/odoo#69484 ENT PR: odoo/enterprise#17792 Related: odoo/upgrade#2401 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -131,5 +131,5 @@ class TestCRMLeadSmartCalendar(TestCrmCommon):
|
||||
'stop': datetime(2020, 12, 13, 22),
|
||||
})
|
||||
self.assertEqual(len(event.attendee_ids), 2)
|
||||
self.assertEqual(event.attendee_ids[0].partner_id, self.user_sales_leads.partner_id)
|
||||
self.assertEqual(event.attendee_ids[1].partner_id, self.contact_1)
|
||||
self.assertIn(self.user_sales_leads.partner_id, event.attendee_ids.partner_id)
|
||||
self.assertIn(self.contact_1, event.attendee_ids.partner_id)
|
||||
|
||||
Reference in New Issue
Block a user