Private
Public Access
1
0

passing tests

This commit is contained in:
Sander Roosendaal
2019-11-14 15:15:25 +01:00
parent b32f5e71d1
commit ad3681723a
5 changed files with 33 additions and 13 deletions

View File

@@ -141,6 +141,16 @@ def mocked_read_df_sql(id):
return df
def mocked_get_video_data(*args, **kwargs):
with open('rowers/tests/testdata/videodata.json','r') as infile:
data = json.load(infile)
maxtime = 4135.
with open('rowers/tests/testdata/videometrics.json','r') as infile:
metrics = json.load(infile)
return data,metrics,maxtime
def mocked_getrowdata_db(*args, **kwargs):
df = pd.read_csv('rowers/tests/testdata/getrowdata_mock.csv')