Commit 15c72e16 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[weboob/tools/capabilities/bank/] 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.
parent 394b029c
......@@ -153,7 +153,7 @@ class BankStandardTest(object):
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'):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment