From 9c8a5e2a635802953d1b15df3ac4349abc371814 Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Mon, 26 Jun 2023 21:49:03 -0400 Subject: [PATCH] bemade_fsm: Added an assertion after integration tour. --- tests/test_equipment.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_equipment.py b/tests/test_equipment.py index 2f05a42..c2d4b8d 100644 --- a/tests/test_equipment.py +++ b/tests/test_equipment.py @@ -17,8 +17,8 @@ class TestEquipmentCommon(FSMManagerUserTransactionCase): 'company_type': 'company', 'street': '123 Street St.', 'city': 'Montreal', - 'state_id': cls.env['res.country.state'].search([('name','ilike','Quebec%')]).id, - 'country_id': cls.env['res.country'].search([('name','=','Canada')]).id + 'state_id': cls.env['res.country.state'].search([('name', 'ilike', 'Quebec%')]).id, + 'country_id': cls.env['res.country'].search([('name', '=', 'Canada')]).id }) cls.partner_contact = cls.env['res.partner'].create({ @@ -54,4 +54,6 @@ class TestEquipmentTours(HttpCase, TestEquipmentCommon): login=self.user.login, ) def test_equipment_sale_order_tour(self): - self.start_tour('/web', 'equipment_sale_order_tour', login=self.user.login) \ No newline at end of file + self.start_tour('/web', 'equipment_sale_order_tour', login=self.user.login) + # Make sure the equipment added to the SO in the test tour was added to the partner + self.assertEqual(len(self.partner_company.equipment_ids), 2)