diff --git a/fittrackee/tests/workouts/test_workouts_api_1_post.py b/fittrackee/tests/workouts/test_workouts_api_1_post.py index fcf84a13..dadc8331 100644 --- a/fittrackee/tests/workouts/test_workouts_api_1_post.py +++ b/fittrackee/tests/workouts/test_workouts_api_1_post.py @@ -56,7 +56,7 @@ def assert_workout_data_with_gpx(data: Dict) -> None: assert segment['pauses'] is None records = data['data']['workouts'][0]['records'] - assert len(records) == 4 + assert len(records) == 5 assert records[0]['sport_id'] == 1 assert records[0]['workout_id'] == data['data']['workouts'][0]['id'] assert records[0]['record_type'] == 'MS' @@ -69,14 +69,18 @@ def assert_workout_data_with_gpx(data: Dict) -> None: assert records[1]['value'] == '0:04:10' assert records[2]['sport_id'] == 1 assert records[2]['workout_id'] == data['data']['workouts'][0]['id'] - assert records[2]['record_type'] == 'FD' + assert records[2]['record_type'] == 'HA' assert records[2]['workout_date'] == 'Tue, 13 Mar 2018 12:44:45 GMT' - assert records[2]['value'] == 0.32 assert records[3]['sport_id'] == 1 assert records[3]['workout_id'] == data['data']['workouts'][0]['id'] - assert records[3]['record_type'] == 'AS' + assert records[3]['record_type'] == 'FD' assert records[3]['workout_date'] == 'Tue, 13 Mar 2018 12:44:45 GMT' - assert records[3]['value'] == 4.61 + assert records[3]['value'] == 0.32 + 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, 13 Mar 2018 12:44:45 GMT' + assert records[4]['value'] == 4.61 def assert_workout_data_with_gpx_segments(data: Dict) -> None: