diff --git a/account_bank_statement_import_camt/test_files/golden-camt053-txdtls.pydata b/account_bank_statement_import_camt/test_files/golden-camt053-txdtls.pydata index 0a274e5..f641bfb 100644 --- a/account_bank_statement_import_camt/test_files/golden-camt053-txdtls.pydata +++ b/account_bank_statement_import_camt/test_files/golden-camt053-txdtls.pydata @@ -2,6 +2,7 @@ 'CH1111000000123456789', [{'balance_end_real': 79443.15, 'balance_start': 75960.15, + 'date': '2017-03-22', 'name': '20170323123456789012345', 'transactions': [{'account_number': 'CH2222000000123456789', 'amount': 2187.0, diff --git a/account_bank_statement_import_camt/test_files/golden-camt053.pydata b/account_bank_statement_import_camt/test_files/golden-camt053.pydata index b4e940d..4aa53f1 100644 --- a/account_bank_statement_import_camt/test_files/golden-camt053.pydata +++ b/account_bank_statement_import_camt/test_files/golden-camt053.pydata @@ -2,6 +2,7 @@ 'NL77ABNA0574908765', [{'balance_end_real': 15121.12, 'balance_start': 15568.27, + 'date': '2014-01-05', 'name': '1234Test/1', 'transactions': [{'account_bic': 'ABNANL2A', 'account_number': 'NL46ABNA0499998748', diff --git a/account_bank_statement_import_camt/tests/test_import_bank_statement.py b/account_bank_statement_import_camt/tests/test_import_bank_statement.py index 19dfa65..e01cbc3 100644 --- a/account_bank_statement_import_camt/tests/test_import_bank_statement.py +++ b/account_bank_statement_import_camt/tests/test_import_bank_statement.py @@ -10,8 +10,6 @@ import tempfile from openerp.tests.common import TransactionCase from openerp.tools.misc import file_open -from ..camt import CamtParser - DATA_DIR = 'account_bank_statement_import_camt/test_files/' @@ -20,7 +18,7 @@ class TestParser(TransactionCase): """Tests for the camt parser itself.""" def setUp(self): super(TestParser, self).setUp() - self.parser = CamtParser() + self.parser = self.env['account.bank.statement.import.camt.parser'] def _do_parse_test(self, inputfile, goldenfile): with file_open(inputfile) as testfile: