[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)
This commit is contained in:
Sébastien Theys
2018-07-18 13:39:33 +02:00
parent ae87467d8c
commit da150e591d
+1 -1
View File
@@ -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