Pass Black on the files + pylint

Move test data to tests/data
This commit is contained in:
Tonow-c2c
2019-11-22 09:26:28 +01:00
committed by Florian da Costa
parent 5c8a0962da
commit 5bb8d7caa4
5 changed files with 230 additions and 157 deletions

View File

@@ -0,0 +1,4 @@
date;amount;commission_amount;label
2011-03-07 13:45:14;118.4;-11.84;label a
2011-03-02 13:45:14;189;-15.12;label b
2011-03-02 17:45:14;189;-15.12;label c
1 date amount commission_amount label
2 2011-03-07 13:45:14 118.4 -11.84 label a
3 2011-03-02 13:45:14 189 -15.12 label b
4 2011-03-02 17:45:14 189 -15.12 label c

Binary file not shown.

View File

@@ -53,7 +53,10 @@ class TestCodaImport(common.TransactionCase):
"""Test import from xls
"""
file_name = get_resource_path(
'account_move_base_import', 'demo', 'statement.xls'
'account_move_base_import',
'tests',
'data',
'statement.xls'
)
move = self._import_file(file_name)
self._validate_imported_move(move)
@@ -62,7 +65,10 @@ class TestCodaImport(common.TransactionCase):
"""Test import from csv
"""
file_name = get_resource_path(
'account_move_base_import', 'demo', 'statement.csv'
'account_move_base_import',
'tests',
'data',
'statement.csv'
)
move = self._import_file(file_name)
self._validate_imported_move(move)