From 5c9e6b152e32ec8aa22707e27efd8951685253e4 Mon Sep 17 00:00:00 2001 From: Kaynnan Lemes Date: Wed, 21 Jun 2023 10:42:30 -0300 Subject: [PATCH] [IMP] maintenance_product: Improved test_maintenance_product for better test coverage percentage --- maintenance_product/tests/test_maintenance_product.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/maintenance_product/tests/test_maintenance_product.py b/maintenance_product/tests/test_maintenance_product.py index d288365bd..e6d5bacc7 100644 --- a/maintenance_product/tests/test_maintenance_product.py +++ b/maintenance_product/tests/test_maintenance_product.py @@ -25,6 +25,11 @@ def test_maintenance_equipment_category(self): def test_maintenance_equipment(self): equipment_form = Form(self.equipment) equipment_form.product_id = self.product + self.assertEqual(equipment_form.product_id, self.product) + self.assertTrue(equipment_form.product_id.seller_ids) + equipment_form.name = "test-product" self.assertEqual(equipment_form.name, "test-product") - self.assertEqual(equipment_form.cost, 10) + equipment_form.cost = 30 + self.assertEqual(equipment_form.cost, 30) + equipment_form.partner_id = self.partner self.assertEqual(equipment_form.partner_id, self.partner)