Browse Source

[IMP] base_location: Improve tests according to https://github.com/OCA/partner-contact/pull/1180.

TT33047
14.0
Víctor Martínez 3 years ago
parent
commit
ea101fa28a
  1. 3
      base_location/tests/test_base_location.py

3
base_location/tests/test_base_location.py

@ -212,6 +212,7 @@ class TestBaseLocation(common.SavepointCase):
"is_company": True,
"street": "123 Fake St.",
"city": "Springfield",
"city_id": self.barcelona.city_id.id,
"state_id": self.barcelona.state_id.id,
"country_id": self.barcelona.country_id.id,
"zip_id": self.barcelona.id,
@ -224,7 +225,9 @@ class TestBaseLocation(common.SavepointCase):
"parent_id": parent.id,
}
)
parent = Form(parent)
parent.zip_id = self.lausanne
parent.save()
self.assertEqual(contact.zip_id, self.lausanne, "Contact should be synced")
def test_display_name(self):

Loading…
Cancel
Save