testing on video analysis creation and view
This commit is contained in:
@@ -183,6 +183,18 @@ def mocked_getsmallrowdata_forfusion(*args, **kwargs):
|
||||
|
||||
return df
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
def mocked_videodata(*args, **kwargs):
|
||||
df = pd.read_csv('rowers/tests/testdata/testvideodata.csv')
|
||||
data = df .to_dict()
|
||||
df = pd.read_csv('rowers/tests/testdata/testvideodata_metrics.csv')
|
||||
metrics = OrderedDict(df.to_dict())
|
||||
|
||||
maxtime = 3282.4
|
||||
|
||||
return data, metrics, maxtime
|
||||
|
||||
def mocked_getsmallrowdata_db(*args, **kwargs):
|
||||
df = pd.read_csv('rowers/tests/testdata/colsfromdb.csv')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user