Browse Source

[FIX] Module 'base_contact' - Unit test 'test_03_search_match_attached_contacts', initial company's name has been renamed to 'YourCompany' in 8.0

pull/82/head
sebalix 10 years ago
parent
commit
0e26c01993
  1. 8
      base_contact/tests/test_base_contact.py

8
base_contact/tests/test_base_contact.py

@ -122,12 +122,12 @@ class Test_Base_Contact(common.TransactionCase):
""" """
cr, uid = self.cr, self.uid cr, uid = self.cr, self.uid
# Bob's contact has one other position which is related to # 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. # bob position.
partner_ids = self.partner.search( partner_ids = self.partner.search(
cr, uid, cr, uid,
[('parent_id', 'ilike', 'Your Company')],
[('parent_id', 'ilike', 'YourCompany')],
context=None context=None
) )
self.assertIn(self.bob_job1_id, partner_ids, ) self.assertIn(self.bob_job1_id, partner_ids, )
@ -137,7 +137,7 @@ class Test_Base_Contact(common.TransactionCase):
ctx = {'search_show_all_positions': False} ctx = {'search_show_all_positions': False}
partner_ids = self.partner.search( partner_ids = self.partner.search(
cr, uid, cr, uid,
[('parent_id', 'ilike', 'Your Company')],
[('parent_id', 'ilike', 'YourCompany')],
context=ctx context=ctx
) )
self.assertIn(self.bob_contact_id, partner_ids, ) self.assertIn(self.bob_contact_id, partner_ids, )

Loading…
Cancel
Save