done with dataprep for now
This commit is contained in:
@@ -76,6 +76,15 @@ class DataPrepTests(TestCase):
|
||||
wmax = dataprep.check_marker(workouts[0])
|
||||
self.assertTrue(wmax.rankingpiece)
|
||||
|
||||
def test_workouttype_fromfit(self):
|
||||
filename = 'rowers/tests/testdata/3x250m.fit'
|
||||
res = dataprep.get_workouttype_from_fit(filename)
|
||||
self.assertEqual(res,'Workout')
|
||||
|
||||
def test_workouttype_fromtcx(self):
|
||||
filename = 'rowers/tests/testdata/crewnerddata.tcx'
|
||||
res = dataprep.get_workouttype_from_tcx(filename)
|
||||
self.assertEqual(res,'water')
|
||||
|
||||
|
||||
class InteractivePlotTests(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user