Skip to content

Commit

Permalink
[IMP] base_location: Improve tests according to #1180.
Browse files Browse the repository at this point in the history
TT33047
  • Loading branch information
victoralmau authored and henrybackman committed Dec 3, 2024
1 parent 933dfe9 commit 0339897
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base_location/tests/test_base_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def test_partner_address_field_sync(self):
"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,
Expand All @@ -214,7 +215,9 @@ def test_partner_address_field_sync(self):
"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):
Expand Down

0 comments on commit 0339897

Please sign in to comment.