From 19d6a69813a701b345f744661372c71a792fe0f6 Mon Sep 17 00:00:00 2001 From: Fmstrat Date: Mon, 18 Jul 2022 09:37:30 -0400 Subject: [PATCH] Update test message and record count for asserts --- fittrackee/tests/workouts/test_workouts_api_2_patch.py | 2 +- fittrackee_client/tests/unit/utils/records.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fittrackee/tests/workouts/test_workouts_api_2_patch.py b/fittrackee/tests/workouts/test_workouts_api_2_patch.py index cf3143bc..05657365 100644 --- a/fittrackee/tests/workouts/test_workouts_api_2_patch.py +++ b/fittrackee/tests/workouts/test_workouts_api_2_patch.py @@ -32,7 +32,7 @@ def assert_workout_data_with_gpx(data: Dict, sport_id: int) -> None: assert data['data']['workouts'][0]['with_gpx'] is True records = data['data']['workouts'][0]['records'] - assert len(records) == 4 + assert len(records) == 5 assert records[0]['sport_id'] == sport_id assert records[0]['workout_id'] == data['data']['workouts'][0]['id'] assert records[0]['record_type'] == 'MS' diff --git a/fittrackee_client/tests/unit/utils/records.spec.ts b/fittrackee_client/tests/unit/utils/records.spec.ts index 0c5da38d..09ca4bcd 100644 --- a/fittrackee_client/tests/unit/utils/records.spec.ts +++ b/fittrackee_client/tests/unit/utils/records.spec.ts @@ -275,7 +275,7 @@ describe('formatRecord (invalid record type)', () => { false ) ).to.throw( - 'Invalid record type, expected: "AS", "FD", "LD", "HA", "MD", got: "M"' + 'Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "M"' ) }) })