Skip to content

Commit

Permalink
FIX camt054 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Sep 4, 2018
1 parent 64dcce8 commit 11a53f7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
5 changes: 1 addition & 4 deletions l10n_ch_import_camt054/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
'views/account_bank_statement_line_test.xml',
],
'demo': [

],
'test': [
'res/test_data.yml',
'demo/test_data.yml',
],
'installable': True,
}
File renamed without changes.
2 changes: 1 addition & 1 deletion l10n_ch_import_camt054/res/camt.054.demo-1000.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</RltdDts>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>Demo 2</AddtlNtryInf>
<AddtlNtryInf>Demo Camt054</AddtlNtryInf>
</Ntry>
</Ntfctn>
</BkToCstmrDbtCdtNtfctn>
Expand Down
19 changes: 10 additions & 9 deletions l10n_ch_import_camt054/tests/test_import_camt.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# -*- coding: utf-8 -*-
import base64

from odoo.tests import TransactionCase
from odoo.tests import SingleTransactionCase
from odoo.modules import get_module_resource


class TestImportCamt(TransactionCase):
class TestImportCamt(SingleTransactionCase):

def setUp(self):
super(TestImportCamt, self).setUp()
@classmethod
def setUpClass(cls):
super(TestImportCamt, cls).setUpClass()

account_bank_statement_import_obj = \
self.env['account.bank.statement.import']
cls.env['account.bank.statement.import']

account_bank_statement_line_obj =\
self.env['account.bank.statement.line']
account_bank_statement_line_obj = \
cls.env['account.bank.statement.line']

account_account_obj = self.env['account.account']
account_move_line_obj = self.env['account.move.line']
account_account_obj = cls.env['account.account']
account_move_line_obj = cls.env['account.move.line']

test_file_path_camt053 = get_module_resource(
'l10n_ch_import_camt054', 'res', 'camt.053.demo-1000.xml')
Expand Down

0 comments on commit 11a53f7

Please sign in to comment.