From 15c72e16146c3a142dc940d7896c325a00a44212 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Wed, 25 Sep 2019 17:45:38 +0200 Subject: [PATCH] [weboob/tools/capabilities/bank/test.py] Modified valuation test for valuations = 0.00 Some accounts have investments with a valuation = 0, it should not be present in the alert is opposed to empty valuations like NotAvailable. --- weboob/tools/capabilities/bank/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/capabilities/bank/test.py b/weboob/tools/capabilities/bank/test.py index ac7b41df45..7567766925 100644 --- a/weboob/tools/capabilities/bank/test.py +++ b/weboob/tools/capabilities/bank/test.py @@ -153,7 +153,7 @@ def check_investments(self, account): def check_investment(self, account, inv): self.assertTrue(inv.label, 'investment %r has no label' % inv) - self.assertTrue(inv.valuation, 'investment %r has no valuation' % inv) + self.assertFalse(empty(inv.valuation), 'investment %r has no valuation' % inv) if inv.code and inv.code != 'XX-liquidity': self.assertTrue(inv.code_type, 'investment %r has code but no code type' % inv) if inv.code_type == inv.CODE_TYPE_ISIN and inv.code and not inv.code.startswith('XX'): -- GitLab