[FIX] pms: fix some test in test_pms_checkin_partner

This commit is contained in:
Sara Lago
2021-06-21 11:27:12 +02:00
parent ec3bdecf42
commit 3f7309fe25

View File

@@ -824,7 +824,7 @@ class TestPmsCheckinPartner(TestPms):
# ASSERT
self.assertTrue(self.host1.mobile, "Partner mobile must be added")
def _test_partner_id_numbers_created_from_checkin(self):
def test_partner_id_numbers_created_from_checkin(self):
"""
Some of the required data of the checkin_partner to create the partner are document_type
and document_number, with them an id_number is created associated with the partner that
@@ -842,6 +842,8 @@ class TestPmsCheckinPartner(TestPms):
}
)
checkin.flush()
# ASSERT
self.assertTrue(
checkin.partner_id.id_numbers,
@@ -864,12 +866,13 @@ class TestPmsCheckinPartner(TestPms):
"Checkin partner email and partner email shouldn't match",
)
def _test_partner_modified_previous_checkin_not_modified(self):
def test_partner_modified_previous_checkin_not_modified(self):
"""
If a partner modifies any of its fields, these change mustn't be reflected
in the previous checkins associated with it
"""
# ARRANGE
self.checkin1.flush()
self.host1.gender = "female"
# ASSERT
self.assertNotEqual(