Browse Source

CO-1232 Fixed issues with CAMT parser tests

pull/194/head
Emanuel Cino 7 years ago
committed by Tom Blauwendraat
parent
commit
8b2205c19e
  1. 1
      account_bank_statement_import_camt/test_files/golden-camt053-txdtls.pydata
  2. 1
      account_bank_statement_import_camt/test_files/golden-camt053.pydata
  3. 4
      account_bank_statement_import_camt/tests/test_import_bank_statement.py

1
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,

1
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',

4
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:

Loading…
Cancel
Save