From 0e26c01993d7f4b2e5d4d307613b28a274f4ef48 Mon Sep 17 00:00:00 2001 From: sebalix Date: Sat, 24 Jan 2015 14:17:05 +0100 Subject: [PATCH] [FIX] Module 'base_contact' - Unit test 'test_03_search_match_attached_contacts', initial company's name has been renamed to 'YourCompany' in 8.0 --- base_contact/tests/test_base_contact.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base_contact/tests/test_base_contact.py b/base_contact/tests/test_base_contact.py index f06a486c3..f395979f4 100644 --- a/base_contact/tests/test_base_contact.py +++ b/base_contact/tests/test_base_contact.py @@ -122,12 +122,12 @@ class Test_Base_Contact(common.TransactionCase): """ cr, uid = self.cr, self.uid # Bob's contact has one other position which is related to - # 'Your Company' - # so search for all contacts working for 'Your Company' should contain + # 'YourCompany' + # so search for all contacts working for 'YourCompany' should contain # bob position. partner_ids = self.partner.search( cr, uid, - [('parent_id', 'ilike', 'Your Company')], + [('parent_id', 'ilike', 'YourCompany')], context=None ) self.assertIn(self.bob_job1_id, partner_ids, ) @@ -137,7 +137,7 @@ class Test_Base_Contact(common.TransactionCase): ctx = {'search_show_all_positions': False} partner_ids = self.partner.search( cr, uid, - [('parent_id', 'ilike', 'Your Company')], + [('parent_id', 'ilike', 'YourCompany')], context=ctx ) self.assertIn(self.bob_contact_id, partner_ids, )