Browse Source

[IMP] More debugging info in import tests.

pull/78/head
Ronald Portier 6 years ago
parent
commit
751890718f
  1. 11
      account_bank_statement_import/tests/test_import_file.py

11
account_bank_statement_import/tests/test_import_file.py

@ -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)

Loading…
Cancel
Save