passing tests
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user