Add query doc link, closes #268

This commit is contained in:
Stephane Bruckert 2020-02-02 16:04:44 +00:00
parent 1ad7b909d4
commit 93412a7b78
5 changed files with 5 additions and 16 deletions

View File

@ -1,4 +1,4 @@
name: Python application name: Tests
on: [push, pull_request] on: [push, pull_request]

View File

@ -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

View File

@ -2,7 +2,7 @@
##### A light weight Python library for the Spotify Web API ##### A light weight Python library for the Spotify Web API
[![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest) ![Tests](https://github.com/plamere/spotipy/workflows/Tests/badge.svg) [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest)
## Documentation ## Documentation

View File

@ -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',

View File

@ -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)