Skip to content

Commit

Permalink
API - fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Jan 4, 2025
1 parent a1090d1 commit 3f74969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions fittrackee/tests/comments/test_comments_likes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,7 @@ def test_it_returns_page_2(
)

response = client.get(
f"{self.route.format(
comment_uuid=comment.short_id
)}?page=2",
f"{self.route.format(comment_uuid=comment.short_id)}?page=2",
headers=dict(Authorization=f'Bearer {auth_token}'),
)

Expand Down
5 changes: 2 additions & 3 deletions fittrackee/tests/workouts/test_workouts_likes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,10 @@ def test_it_returns_page_2(
client, auth_token = self.get_test_client_and_auth_token(
app, user_1.email
)
workout_uuid = workout_cycling_user_1.short_id

response = client.get(
f"{self.route.format(
workout_uuid=workout_cycling_user_1.short_id
)}?page=2",
f"{self.route.format(workout_uuid=workout_uuid)}?page=2",
headers=dict(Authorization=f'Bearer {auth_token}'),
)

Expand Down

0 comments on commit 3f74969

Please sign in to comment.