From 61ffbf088d61e46384a258e2af1f4e2fe4b1d594 Mon Sep 17 00:00:00 2001 From: Mourad Date: Mon, 19 Feb 2024 15:56:18 +0100 Subject: [PATCH] [16.0][FIX] tests --- l10n_fr_ecotaxe_sale/tests/test_sale_ecotaxe.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/l10n_fr_ecotaxe_sale/tests/test_sale_ecotaxe.py b/l10n_fr_ecotaxe_sale/tests/test_sale_ecotaxe.py index ef693b377..a54773b19 100644 --- a/l10n_fr_ecotaxe_sale/tests/test_sale_ecotaxe.py +++ b/l10n_fr_ecotaxe_sale/tests/test_sale_ecotaxe.py @@ -19,8 +19,8 @@ def setUpClass(cls, chart_template_ref="l10n_fr.l10n_fr_pcg_chart_template"): "name": "Fixed Ecotaxe", "ecotaxe_type": "fixed", "default_fixed_ecotaxe": 2.4, - "ecotaxe_product_status": "M", - "ecotaxe_supplier_status": "FAB", + "product_status": "M", + "supplier_status": "FAB", } ) cls.ecotaxe_classification2 = cls.ecotaxe_classification.create( @@ -28,8 +28,8 @@ def setUpClass(cls, chart_template_ref="l10n_fr.l10n_fr_pcg_chart_template"): "name": "Weight based", "ecotaxe_type": "weight_based", "ecotaxe_coef": 0.04, - "ecotaxe_product_status": "P", - "ecotaxe_supplier_status": "FAB", + "product_status": "P", + "supplier_status": "FAB", } ) cls.product_a.weight = 100 @@ -91,7 +91,7 @@ def test_01_manual_fixed_ecotaxe(self): self.assertEqual(self.product_a.ecotaxe_amount, 1.5) self.sale_line1.product_uom_qty = 4 self.sale_line1._onchange_product_ecotaxe_line() - self.assertEqual(self.sale_line1.amount_unit, 1.5) + self.assertEqual(self.sale_line1.ecotaxe_amount_unit, 1.5) self.assertEqual(self.sale_line1.subtotal_ecotaxe, 6.0) self.assertEqual(self.sale.amount_total, 4800.0) self.assertEqual(self.sale.amount_ecotaxe, 6.0) @@ -113,7 +113,7 @@ def test_02_classification_weight_based_ecotaxe(self): self.sale_line1._compute_ecotaxe() self.assertEqual(self.product_b.ecotaxe_amount, 16) self.sale_line1.product_uom_qty = 3 - self.assertEqual(self.sale_line1.amount_unit, 16) + self.assertEqual(self.sale_line1.ecotaxe_amount_unit, 16) self.assertEqual(self.sale_line1.subtotal_ecotaxe, 48) self.assertEqual(self.sale.amount_total, 720.0) self.assertEqual(self.sale.amount_ecotaxe, 48) @@ -145,7 +145,7 @@ def test_03_classification_ecotaxe(self): self.assertEqual(self.product_a.ecotaxe_amount, 2.4) self.sale_line1.product_uom_qty = 3 self.sale_line1._onchange_product_ecotaxe_line() - self.assertEqual(self.sale_line1.amount_unit, 2.4) + self.assertEqual(self.sale_line1.ecotaxe_amount_unit, 2.4) self.assertAlmostEqual(self.sale_line1.subtotal_ecotaxe, 7.2) self.sale_line2._onchange_product_ecotaxe_line() self.assertEqual(self.sale_line2.ecotaxe_amount_unit, 16)