mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #678] Running tests with unaltered code results in errors #400
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gustavokrieger on GitHub (Apr 22, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/678
Originally assigned to: @stephanebruckert on GitHub.
Describe the bug
Running tests in master results in 7 errors.
Your code
python -m unittest discover -v testsExpected behavior
All tests ran correctly.
Output
The ones that failed:
Environment:
Additional context
I want to look into it, but before starting I want to make sure I'm not missing something.
The Spotify account I'm using is not Premium. It is also new, so it is completely empty in terms of liked songs, playlists, etc. It looks like some errors have something to do with this, is it expected behaviour?
@stephanebruckert commented on GitHub (Apr 22, 2021):
Yes.
Integration tests should:
I plan to work on these ASAP
@gustavokrieger commented on GitHub (Apr 22, 2021):
Mind if I try my hand on these:
test_current_user_follows
test_current_user_saved_tracks
test_current_user_top_tracks
They probably happen because of the empty account.
@gustavokrieger commented on GitHub (Apr 22, 2021):
I created a Pull Request for these - #679
@Peter-Schorn commented on GitHub (Apr 23, 2021):
The reason the failure of
test_max_retries_reached_getis probably because Spotify has a very high rate limit. You can make at least several requests per second. If your internet connection is slow, then serial requests may never exceed the limit.@gustavokrieger commented on GitHub (Apr 24, 2021):
I created a pull Pull Request to solve
test_spotify_client_credentials_get_access_token- #682@stephanebruckert commented on GitHub (Jul 9, 2024):
Closing, PR was merged