From 42553511063bde6b389f5c99d94f71b987f469d3 Mon Sep 17 00:00:00 2001 From: Andreas Madsack Date: Sat, 13 Jan 2018 12:18:03 +0100 Subject: [PATCH] fix paths for docker setup --- byro_shackspace/tests/test_bank_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/byro_shackspace/tests/test_bank_import.py b/byro_shackspace/tests/test_bank_import.py index 69425f3..16e8cb0 100644 --- a/byro_shackspace/tests/test_bank_import.py +++ b/byro_shackspace/tests/test_bank_import.py @@ -1,3 +1,4 @@ +import os.path import pytest from byro_shackspace.utils import process_bank_csv from django.core.files.uploadedfile import InMemoryUploadedFile @@ -7,7 +8,8 @@ from byro.bookkeeping.models import RealTransactionSource @pytest.fixture 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( file=actual_file, field_name=None,