Remove HA from asserts w/o GPX
This commit is contained in:
parent
a22096e652
commit
a86e65f015
@ -190,7 +190,7 @@ def assert_workout_data_wo_gpx(data: Dict) -> None:
|
||||
assert len(data['data']['workouts'][0]['segments']) == 0
|
||||
|
||||
records = data['data']['workouts'][0]['records']
|
||||
assert len(records) == 5
|
||||
assert len(records) == 4
|
||||
assert records[0]['sport_id'] == 1
|
||||
assert records[0]['workout_id'] == data['data']['workouts'][0]['id']
|
||||
assert records[0]['record_type'] == 'MS'
|
||||
@ -203,18 +203,14 @@ def assert_workout_data_wo_gpx(data: Dict) -> None:
|
||||
assert records[1]['value'] == '1:00:00'
|
||||
assert records[2]['sport_id'] == 1
|
||||
assert records[2]['workout_id'] == data['data']['workouts'][0]['id']
|
||||
assert records[2]['record_type'] == 'HA'
|
||||
assert records[2]['record_type'] == 'FD'
|
||||
assert records[2]['workout_date'] == 'Tue, 15 May 2018 14:05:00 GMT'
|
||||
assert records[2]['value'] == 10.0
|
||||
assert records[3]['sport_id'] == 1
|
||||
assert records[3]['workout_id'] == data['data']['workouts'][0]['id']
|
||||
assert records[3]['record_type'] == 'FD'
|
||||
assert records[3]['record_type'] == 'AS'
|
||||
assert records[3]['workout_date'] == 'Tue, 15 May 2018 14:05:00 GMT'
|
||||
assert records[3]['value'] == 10.0
|
||||
assert records[4]['sport_id'] == 1
|
||||
assert records[4]['workout_id'] == data['data']['workouts'][0]['id']
|
||||
assert records[4]['record_type'] == 'AS'
|
||||
assert records[4]['workout_date'] == 'Tue, 15 May 2018 14:05:00 GMT'
|
||||
assert records[4]['value'] == 10.0
|
||||
|
||||
|
||||
class TestPostWorkoutWithGpx(ApiTestCaseMixin, CallArgsMixin):
|
||||
|
Loading…
Reference in New Issue
Block a user