[PR #1128] [CLOSED] Move test_track_search to authenticated tests #1168

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/1128
Author: @stephanebruckert
Created: 5/31/2024
Status: Closed

Base: masterHead: search-track-test


📝 Commits (10+)

📊 Changes

3 files changed (+18 additions, -11 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 tests/integration/non_user_endpoints/test.py (+11 -10)
📝 tests/integration/user_endpoints/test.py (+6 -0)

📄 Description

It appears that searching a track now requires the user to be authenticated
https://github.com/spotipy-dev/spotipy/actions/runs/9321825672/job/25661628355#step:5:73

Possible bug as it's weirdly returning audiobooks

{
   "authors":[
      {
         "name":"Neil Gaiman"
      }
   ],
   "available_markets":[
      "CA",
      "PR",
      "US"
   ],
   "chapters":{
      "href":"https://api.spotify.com/v1/audiobooks/1IcM9Untg6d3ktuwObYGcN/chapters?offset=0&limit=50&market=US",
      "items":[
         {
            "restrictions":{
               "reason":"payment_required"
            },
            "id":"0e6HmyVq42q68udhfbsbxO",
            "description":"",
            "chapter_number":0,
            "duration_ms":37041,

Asked about it here https://community.spotify.com/t5/Spotify-for-Developers/Unauthenticated-track-search-returns-audiobooks-along-with-quot/td-p/6106058


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/1128 **Author:** [@stephanebruckert](https://github.com/stephanebruckert) **Created:** 5/31/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `search-track-test` --- ### 📝 Commits (10+) - [`5f9cc47`](https://github.com/spotipy-dev/spotipy/commit/5f9cc476d83aeed4ae350dd41d178a9b534ff8da) Enable test_track_search again - [`cd7fd90`](https://github.com/spotipy-dev/spotipy/commit/cd7fd902f323e96bba9127ed9542a9a32517625e) Move test_track_search to user_endpoints - [`e95e1f1`](https://github.com/spotipy-dev/spotipy/commit/e95e1f1bee64fbf686b18fd1dac83a1c4c4df314) Add back failing test - [`bccdad3`](https://github.com/spotipy-dev/spotipy/commit/bccdad305d132f18e5529567d1a23b4736c722de) Add pr link for more info - [`484351f`](https://github.com/spotipy-dev/spotipy/commit/484351f3a2b3148d92a1f8386345a9b563172cf8) fix - [`24d3747`](https://github.com/spotipy-dev/spotipy/commit/24d3747f70540a3196d2ffd0607bf4ef464170d8) lint - [`44d0bea`](https://github.com/spotipy-dev/spotipy/commit/44d0bea80afdf8b2c741c62c90a9af02527649f3) fix - [`7d76612`](https://github.com/spotipy-dev/spotipy/commit/7d76612d45c5440a9656a4fa0a5cd01a7dddef9e) fix - [`3b3d79c`](https://github.com/spotipy-dev/spotipy/commit/3b3d79c33476a19d901be36055dfefe6dc7566ad) fix - [`717a5e1`](https://github.com/spotipy-dev/spotipy/commit/717a5e142e917c010e4a5b2a674427db1929963a) fix ### 📊 Changes **3 files changed** (+18 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `tests/integration/non_user_endpoints/test.py` (+11 -10) 📝 `tests/integration/user_endpoints/test.py` (+6 -0) </details> ### 📄 Description It appears that searching a track now requires the user to be authenticated https://github.com/spotipy-dev/spotipy/actions/runs/9321825672/job/25661628355#step:5:73 Possible bug as it's weirdly returning audiobooks ```json { "authors":[ { "name":"Neil Gaiman" } ], "available_markets":[ "CA", "PR", "US" ], "chapters":{ "href":"https://api.spotify.com/v1/audiobooks/1IcM9Untg6d3ktuwObYGcN/chapters?offset=0&limit=50&market=US", "items":[ { "restrictions":{ "reason":"payment_required" }, "id":"0e6HmyVq42q68udhfbsbxO", "description":"", "chapter_number":0, "duration_ms":37041, ``` Asked about it here https://community.spotify.com/t5/Spotify-for-Developers/Unauthenticated-track-search-returns-audiobooks-along-with-quot/td-p/6106058 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:54 +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#1168
No description provided.