Private
Public Access
1
0

replaced copyfile with copy in tests

This commit is contained in:
Sander Roosendaal
2019-02-07 10:28:07 +01:00
parent 00643f2705
commit 6d6bd3d9bc
3 changed files with 8 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ from rowers.tasks import handle_makeplot
from rowers.utils import serialize_list,deserialize_list
from rowers.utils import NoTokenError
from rowers.plannedsessions import get_dates_timeperiod
from shutil import copyfile
from shutil import copyfile, copy
from nose.tools import assert_true
from mock import Mock, patch
from minimocktest import MockTestCase
@@ -107,7 +107,8 @@ def get_random_file(filename='rowers/tests/testdata/testdata.csv',name=''):
else:
newfilename = 'rowers/tests/testdata/temp/'+fromstring+uuid4().hex[:16]+'.'+extension
copyfile(filename,newfilename)
# copyfile(filename,newfilename)
copy(filename,newfilename)
thedict = {
'row':row,

Binary file not shown.