[GH-ISSUE #1051] combined assertion tests for tests.integration.user_endpoints.test.test_current_user_save_and_unsave_tracks #627

Closed
opened 2026-02-28 00:00:22 +03:00 by kerem · 0 comments
Owner

Originally created by @lishukie6588 on GitHub (Dec 7, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1051

When performing integration test, the mentioned test performs assertion calls to 2 separate user endpoint functions at 2 separate points, resulting in an inconclusive assertion test result for the latter current_user_saved_tracks_delete method in the situation that the first assertion call fails after calling the current_user_saved_tracks_add method.

Specifically, as shown in the following screenshot of the unit test in the provided
test suite, you can see the unit test containing the 2 assertion calls in lines 285
and 291 below each time the 2 tested API endpoints were supposed to be called.

image

However, as shown in the following screenshot of the test results, only the
assertion call in line 285 was called and the one in line 291 was aborted and left
inconclusive due to the triggered false response of the first one.

image

Originally created by @lishukie6588 on GitHub (Dec 7, 2023). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1051 When performing integration test, the mentioned test performs assertion calls to 2 separate user endpoint functions at 2 separate points, resulting in an inconclusive assertion test result for the latter current_user_saved_tracks_delete method in the situation that the first assertion call fails after calling the current_user_saved_tracks_add method. Specifically, as shown in the following screenshot of the unit test in the provided test suite, you can see the unit test containing the 2 assertion calls in lines 285 and 291 below each time the 2 tested API endpoints were supposed to be called. ![image](https://github.com/spotipy-dev/spotipy/assets/59763257/06d802e2-c249-462f-a4ae-f355213fbf8d) However, as shown in the following screenshot of the test results, only the assertion call in line 285 was called and the one in line 291 was aborted and left inconclusive due to the triggered false response of the first one. ![image](https://github.com/spotipy-dev/spotipy/assets/59763257/86cf3346-c530-4616-98c2-8f9b60a7e0db)
kerem closed this issue 2026-02-28 00:00:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#627
No description provided.