diff --git a/fittrackee/tests/workouts/test_workouts_api_2_patch.py b/fittrackee/tests/workouts/test_workouts_api_2_patch.py index d5287ec8..25a27bda 100644 --- a/fittrackee/tests/workouts/test_workouts_api_2_patch.py +++ b/fittrackee/tests/workouts/test_workouts_api_2_patch.py @@ -578,7 +578,7 @@ class TestEditWorkoutWithoutGpx(ApiTestCaseMixin): assert records[3]['workout_date'] == 'Mon, 01 Jan 2018 00:00:00 GMT' assert records[3]['value'] == 20.0 - def test_it_updates_elevation_values( + def test_it_updates_ascent_and_descent_values( self, app: Flask, user_1: User, @@ -634,7 +634,7 @@ class TestEditWorkoutWithoutGpx(ApiTestCaseMixin): assert records[4]['workout_date'] == 'Mon, 01 Jan 2018 00:00:00 GMT' assert records[4]['value'] == 10.0 - def test_it_empties_elevation_values( + def test_it_empties_ascent_and_descent_values( self, app: Flask, user_1: User, @@ -745,7 +745,7 @@ class TestEditWorkoutWithoutGpx(ApiTestCaseMixin): ('O', 150), ], ) - def test_it_returns_400_if_elevation_is_invalid( + def test_it_returns_400_if_ascent_or_descent_are_invalid( self, app: Flask, user_1: User, @@ -775,7 +775,7 @@ class TestEditWorkoutWithoutGpx(ApiTestCaseMixin): 'input_key', ['ascent', 'descent'], ) - def test_it_returns_400_if_only_one_elevation_value_is_provided( + def test_it_returns_400_if_only_one_value_ascent_or_descent_is_provided( self, app: Flask, user_1: User, diff --git a/fittrackee/tests/workouts/test_workouts_model.py b/fittrackee/tests/workouts/test_workouts_model.py index 1c035fc7..2314c849 100644 --- a/fittrackee/tests/workouts/test_workouts_model.py +++ b/fittrackee/tests/workouts/test_workouts_model.py @@ -75,7 +75,7 @@ class TestWorkoutModel: assert serialized_workout['with_gpx'] is False assert str(serialized_workout['workout_date']) == '2018-01-01 00:00:00' - def test_serialize_for_workout_without_gpx_and_with_elevation( + def test_serialize_for_workout_without_gpx_and_with_ascent_and_descent( self, app: Flask, sport_1_cycling: Sport, diff --git a/fittrackee/workouts/workouts.py b/fittrackee/workouts/workouts.py index dc87200b..412d829a 100644 --- a/fittrackee/workouts/workouts.py +++ b/fittrackee/workouts/workouts.py @@ -1132,8 +1132,10 @@ def post_workout_no_gpx( "status": "success" } - :