From b6422f51364ba38f4dbe71511e679814e45f3de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Wed, 13 Sep 2023 12:29:01 +0200 Subject: [PATCH] [FIX] account_multicurrency_revaluation: readapt some tests to v16 --- .../tests/test_currency_revaluation.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/account_multicurrency_revaluation/tests/test_currency_revaluation.py b/account_multicurrency_revaluation/tests/test_currency_revaluation.py index 3a5ba57327b..feb8192b9a1 100644 --- a/account_multicurrency_revaluation/tests/test_currency_revaluation.py +++ b/account_multicurrency_revaluation/tests/test_currency_revaluation.py @@ -497,13 +497,13 @@ def test_revaluation_bank_account(self): ) revaluation_line = new_bank_account_lines - bank_account_lines self.assertEqual(len(revaluation_line), 1) - self.assertEqual(revaluation_line.debit, 5.0) - self.assertEqual(revaluation_line.credit, 0.0) + self.assertEqual(revaluation_line.debit, 0.0) + self.assertEqual(revaluation_line.credit, 48.33) self.assertEqual(revaluation_line.amount_currency, 0.0) bank_account_lines |= revaluation_line - self.assertEqual(sum(bank_account_lines.mapped("debit")), 178.33) - self.assertEqual(sum(bank_account_lines.mapped("credit")), 25.0) + self.assertEqual(sum(bank_account_lines.mapped("debit")), 173.33) + self.assertEqual(sum(bank_account_lines.mapped("credit")), 73.33) self.assertEqual(sum(bank_account_lines.mapped("amount_currency")), 125.0) def test_revaluation_bank_account_same_currency(self): @@ -921,8 +921,8 @@ def test_revaluation_reverse(self): ) revaluation_lines = new_bank_account_lines - bank_account_lines self.assertEqual(len(revaluation_lines), 1) - self.assertEqual(sum(revaluation_lines.mapped("debit")), 5.0) - self.assertEqual(sum(revaluation_lines.mapped("credit")), 0.0) + self.assertEqual(sum(revaluation_lines.mapped("debit")), 0.0) + self.assertEqual(sum(revaluation_lines.mapped("credit")), 48.33) self.assertEqual(sum(revaluation_lines.mapped("amount_currency")), 0.0) def create_rates(self, rates_by_date, currency, purge=False):