fix paths for docker setup

This commit is contained in:
Andreas Madsack 2018-01-13 12:18:03 +01:00
parent 97c6d64068
commit 4255351106

View File

@ -1,3 +1,4 @@
import os.path
import pytest import pytest
from byro_shackspace.utils import process_bank_csv from byro_shackspace.utils import process_bank_csv
from django.core.files.uploadedfile import InMemoryUploadedFile from django.core.files.uploadedfile import InMemoryUploadedFile
@ -7,7 +8,8 @@ from byro.bookkeeping.models import RealTransactionSource
@pytest.fixture @pytest.fixture
def bank_transaction_csv_file(): def bank_transaction_csv_file():
actual_file = open('tests/fixtures/transactions.csv', encoding='iso-8859-1') filename = os.path.join(os.path.dirname(__file__), 'fixtures/transactions.csv')
actual_file = open(filename, encoding='iso-8859-1')
f = InMemoryUploadedFile( f = InMemoryUploadedFile(
file=actual_file, file=actual_file,
field_name=None, field_name=None,