Skip to content

Commit

Permalink
API - fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Oct 6, 2024
1 parent cd7633c commit 45eeeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fittrackee/tests/workouts/test_workouts_api_1_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def test_it_overrides_gpx_description_when_description_is_provided(
app: Flask,
user_1: User,
sport_1_cycling: Sport,
gpx_file: str,
gpx_file_with_description: str,
) -> None:
description = self.random_string()
client, auth_token = self.get_test_client_and_auth_token(
Expand All @@ -898,7 +898,7 @@ def test_it_overrides_gpx_description_when_description_is_provided(
response = client.post(
'/api/workouts',
data=dict(
file=(BytesIO(str.encode(gpx_file)), 'example.gpx'),
file=(BytesIO(str.encode(gpx_file_with_description)), 'example.gpx'),
data=f'{{"sport_id": 1, "description": "{description}"}}',
),
headers=dict(
Expand Down

0 comments on commit 45eeeb8

Please sign in to comment.