From b979fdd4312855b6b0e87c840b0ef0dab3c9792f Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 29 Apr 2024 20:25:40 +0200 Subject: [PATCH] [FIX]l10n_be_intrastat_product fix unit tests Replace declaration done() by draft2confirmed() and confirmed2done() --- .../tests/test_intrastat_be.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/l10n_be_intrastat_product/tests/test_intrastat_be.py b/l10n_be_intrastat_product/tests/test_intrastat_be.py index 38a47a96..20ec3eee 100644 --- a/l10n_be_intrastat_product/tests/test_intrastat_be.py +++ b/l10n_be_intrastat_product/tests/test_intrastat_be.py @@ -133,7 +133,8 @@ def test_be_sale_b2b(self): } ) declaration.action_gather() - declaration.done() + declaration.draft2confirmed() + declaration.confirmed2done() clines = declaration.computation_line_ids dlines = declaration.declaration_line_ids self.assertEqual(clines[0].vat, "NL123456782B90") @@ -175,7 +176,8 @@ def test_be_sale_b2b(self): } ) declaration.action_gather() - declaration.done() + declaration.draft2confirmed() + declaration.confirmed2done() clines = declaration.computation_line_ids dlines = declaration.declaration_line_ids self.assertEqual(clines[1].amount_company_currency, -5000.0) @@ -202,7 +204,8 @@ def test_be_sale_b2b_na(self): } ) declaration.action_gather() - declaration.done() + declaration.draft2confirmed() + declaration.confirmed2done() dlines = declaration.declaration_line_ids self.assertEqual(dlines[0].vat, "QV999999999999") @@ -226,7 +229,8 @@ def test_be_sale_b2c(self): } ) declaration.action_gather() - declaration.done() + declaration.draft2confirmed() + declaration.confirmed2done() # clines = declaration.computation_line_ids dlines = declaration.declaration_line_ids self.assertEqual(dlines[0].vat, "QV999999999999") @@ -265,7 +269,8 @@ def test_be_purchase(self): } ) declaration.action_gather() - declaration.done() + declaration.draft2confirmed() + declaration.confirmed2done() clines = declaration.computation_line_ids dlines = declaration.declaration_line_ids self.assertEqual(clines[1].weight, 460.0)