mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
Add query doc link, closes #268
This commit is contained in:
parent
1ad7b909d4
commit
93412a7b78
2
.github/workflows/pythonapp.yml
vendored
2
.github/workflows/pythonapp.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Python application
|
name: Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Support for `playlist_cover_image`
|
- Support for `playlist_cover_image`
|
||||||
- Support `after` and `before` parameter in `current_user_recently_played`
|
- Support `after` and `before` parameter in `current_user_recently_played`
|
||||||
|
- CI for unit tests
|
||||||
|
|
||||||
## [2.7.1] - 2020-01-20
|
## [2.7.1] - 2020-01-20
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
##### A light weight Python library for the Spotify Web API
|
##### A light weight Python library for the Spotify Web API
|
||||||
|
|
||||||
[](https://spotipy.readthedocs.io/en/latest/?badge=latest)
|
 [](https://spotipy.readthedocs.io/en/latest/?badge=latest)
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@ -351,7 +351,8 @@ class Spotify(object):
|
|||||||
""" searches for an item
|
""" searches for an item
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- q - the search query
|
- q - the search query (see how to write a query in the
|
||||||
|
official documentation https://developer.spotify.com/documentation/web-api/reference/search/search/) # noqa
|
||||||
- limit - the number of items to return
|
- limit - the number of items to return
|
||||||
- offset - the index of the first item to return
|
- offset - the index of the first item to return
|
||||||
- type - the type of item to return. One of 'artist', 'album',
|
- type - the type of item to return. One of 'artist', 'album',
|
||||||
|
|||||||
@ -1,17 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""
|
|
||||||
These tests require user authentication - provide client credentials using the
|
|
||||||
following environment variables
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
'SPOTIPY_CLIENT_USERNAME'
|
|
||||||
'SPOTIPY_CLIENT_ID'
|
|
||||||
'SPOTIPY_CLIENT_SECRET'
|
|
||||||
'SPOTIPY_REDIRECT_URI'
|
|
||||||
"""
|
|
||||||
|
|
||||||
from spotipy import (
|
from spotipy import (
|
||||||
Spotify,
|
Spotify,
|
||||||
SpotifyClientCredentials,
|
SpotifyClientCredentials,
|
||||||
@ -76,7 +64,6 @@ class AuthTestSpotipy(unittest.TestCase):
|
|||||||
assert('speechiness' in track)
|
assert('speechiness' in track)
|
||||||
|
|
||||||
def test_audio_features_with_bad_track(self):
|
def test_audio_features_with_bad_track(self):
|
||||||
bad_tracks = []
|
|
||||||
bad_tracks = ['spotify:track:bad']
|
bad_tracks = ['spotify:track:bad']
|
||||||
input = self.four_tracks + bad_tracks
|
input = self.four_tracks + bad_tracks
|
||||||
results = self.spotify.audio_features(input)
|
results = self.spotify.audio_features(input)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user