[IMP] More debugging info in import tests.

This commit is contained in:
Ronald Portier
2018-08-08 13:16:41 +02:00
parent 23e910a9cc
commit 751890718f

View File

@@ -66,13 +66,12 @@ class TestStatementFile(TransactionCase):
# We will get assertion error, but to solve we need to see
# what transactions have been added:
self.cr.execute(
"select name, date, amount, ref, bank_account_id"
" from account_bank_statement_line"
" where statement_id=%d" % statement_obj.id)
"SELECT statement_id, name, date, amount, ref, bank_account_id"
" FROM account_bank_statement_line"
" WHERE statement_id=%s", (statement_obj.id, ))
_logger.error(
"Transaction not found in %s" %
str(self.cr.fetchall())
)
"No transaction with domain %s found in %s" %
(str(domain), str(self.cr.fetchall())))
self.assertTrue(
ids,
'Transaction %s not found after parse.' % str(domain)