mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] More debugging info in import tests.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user