From 7b74404fb61f7e681e8220cdc94d1559d55042a5 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Tue, 31 Oct 2017 11:50:08 +0100 Subject: [PATCH] FIX tests --- .../tests/test_import_bank_statement.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 e01cbc3..19dfa65 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,6 +10,8 @@ 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/' @@ -18,7 +20,7 @@ class TestParser(TransactionCase): """Tests for the camt parser itself.""" def setUp(self): super(TestParser, self).setUp() - self.parser = self.env['account.bank.statement.import.camt.parser'] + self.parser = CamtParser() def _do_parse_test(self, inputfile, goldenfile): with file_open(inputfile) as testfile: