Browse Source

FIX tests

pull/194/head
Emanuel Cino 7 years ago
committed by Tom Blauwendraat
parent
commit
7b74404fb6
  1. 4
      account_bank_statement_import_camt/tests/test_import_bank_statement.py

4
account_bank_statement_import_camt/tests/test_import_bank_statement.py

@ -10,6 +10,8 @@ import tempfile
from openerp.tests.common import TransactionCase from openerp.tests.common import TransactionCase
from openerp.tools.misc import file_open from openerp.tools.misc import file_open
from ..camt import CamtParser
DATA_DIR = 'account_bank_statement_import_camt/test_files/' DATA_DIR = 'account_bank_statement_import_camt/test_files/'
@ -18,7 +20,7 @@ class TestParser(TransactionCase):
"""Tests for the camt parser itself.""" """Tests for the camt parser itself."""
def setUp(self): def setUp(self):
super(TestParser, self).setUp() super(TestParser, self).setUp()
self.parser = self.env['account.bank.statement.import.camt.parser']
self.parser = CamtParser()
def _do_parse_test(self, inputfile, goldenfile): def _do_parse_test(self, inputfile, goldenfile):
with file_open(inputfile) as testfile: with file_open(inputfile) as testfile:

Loading…
Cancel
Save