Commit 573984b7 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[weboob.tests] Added "if" condition on transaction amounts

There are errors raised in the backend when a transaction has an amount
if "0.00". However these transactions actually exist, so we should
check whether the amount is None and not if the balance is != 0.
parent ad6bf998
......@@ -117,6 +117,7 @@ class BankStandardTest(object):
today = date.today()
self.assertFalse(empty(tr.date), 'transaction %r has no debit date' % tr)
if tr.amount != 0:
self.assertTrue(tr.amount, 'transaction %r has no amount' % tr)
self.assertFalse(empty(tr.raw) and empty(tr.label), 'transaction %r has no raw or label' % tr)
......
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