mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: test checkin partner count only test reservations
This commit is contained in:
@@ -46,7 +46,6 @@ class TestPmsCheckinPartner(TestHotel):
|
||||
# ACTION
|
||||
self.arrange_single_checkin()
|
||||
checkins_count = len(self.reservation_1.checkin_partner_ids)
|
||||
|
||||
# ASSERT
|
||||
self.assertEqual(
|
||||
checkins_count,
|
||||
@@ -349,7 +348,7 @@ class TestPmsCheckinPartner(TestHotel):
|
||||
freezer.start()
|
||||
PmsReservation.auto_no_show()
|
||||
|
||||
no_show_reservations = PmsReservation.search([("state", "=", "no_show")])
|
||||
no_show_reservations = self.folio_1.filtered(lambda r: r.state == "no_show")
|
||||
|
||||
# ASSERT
|
||||
self.assertEqual(
|
||||
@@ -371,8 +370,8 @@ class TestPmsCheckinPartner(TestHotel):
|
||||
freezer.start()
|
||||
PmsReservation.auto_no_checkout()
|
||||
|
||||
no_checkout_reservations = PmsReservation.search(
|
||||
[("state", "=", "no_checkout")]
|
||||
no_checkout_reservations = self.folio_1.filtered(
|
||||
lambda r: r.state == "no_checkout"
|
||||
)
|
||||
freezer.stop()
|
||||
# ASSERT
|
||||
|
||||
Reference in New Issue
Block a user