From 6bb3b7d38706c76132083d5526a894458314e475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Sat, 23 Apr 2022 10:15:16 +0200 Subject: [PATCH] [IMP]pms: test day_qty service line force flush compute --- pms/tests/test_product_template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pms/tests/test_product_template.py b/pms/tests/test_product_template.py index b0f49aaf8..730d77e5f 100644 --- a/pms/tests/test_product_template.py +++ b/pms/tests/test_product_template.py @@ -164,6 +164,7 @@ class TestProductTemplate(TestPms): "board_service_room_id": board_service_room_type.id, } ) + reservation.flush() # ASSERT self.assertEqual( reservation.service_ids.service_line_ids.day_qty, @@ -212,6 +213,7 @@ class TestProductTemplate(TestPms): "board_service_room_id": board_service_room_type.id, } ) + reservation.flush() # ASSERT # self.assertTrue(reservation, "The reservation should have been created.") # ASSERT