From da150e591dd4e08eae12398c6f4502bc17042fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 18 Jul 2018 13:03:13 +0200 Subject: [PATCH] [FIX] account: fix the aged report test The partner is present in the amls but as an empty array, so we need to test it this way. Fixed with the help of @smetl (las) --- addons/account/tests/test_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/tests/test_reconciliation.py b/addons/account/tests/test_reconciliation.py index b95875eb954..687ae810e35 100644 --- a/addons/account/tests/test_reconciliation.py +++ b/addons/account/tests/test_reconciliation.py @@ -799,7 +799,7 @@ class TestReconciliation(AccountingTestCase): partner_lines = [line for line in report_lines if line['partner_id'] == partner.id] self.assertEqual(partner_lines, [], 'The aged receivable shouldn\'t have lines at this point') - self.assertFalse(partner.id in amls, 'The aged receivable should not have amls either') + self.assertFalse(amls.get(partner.id), 'The aged receivable should not have amls either') # Case 2: The invoice and payment are not reconciled: we should have one line on the report # and 2 amls