diff --git a/account_bank_statement_import_camt/__openerp__.py b/account_bank_statement_import_camt/__openerp__.py index 92e10bd..2b1a3f5 100644 --- a/account_bank_statement_import_camt/__openerp__.py +++ b/account_bank_statement_import_camt/__openerp__.py @@ -11,9 +11,6 @@ 'depends': [ 'account_bank_statement_import', ], - 'demo': [ - 'demo/demo_data.xml', - ], 'data': [ 'views/account_bank_statement_import.xml', ], diff --git a/account_bank_statement_import_camt/demo/demo_data.xml b/account_bank_statement_import_camt/demo/demo_data.xml deleted file mode 100644 index e6313a1..0000000 --- a/account_bank_statement_import_camt/demo/demo_data.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - NL77ABNA0574908765 - - - - - - Bank Journal - (test camt) - TBNKCAMT - bank - - - 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 496ae94..b043e71 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 @@ -18,6 +18,21 @@ class TestImport(TransactionCase): }, ] + def setUp(self): + super(TestImport, self).setUp() + bank = self.env['res.partner.bank'].create({ + 'acc_number': 'NL77ABNA0574908765', + 'partner_id': self.env.ref('base.main_partner').id, + 'company_id': self.env.ref('base.main_company').id, + 'bank_id': self.env.ref('base.res_bank_1').id, + }) + self.env['account.journal'].create({ + 'name': 'Bank Journal - (test camt)', + 'code': 'TBNKCAMT', + 'type': 'bank', + 'bank_account_id': bank.id, + }) + def test_statement_import(self): """Test correct creation of single statement.""" action = {}