Stephane Bruckert
c7f2edf343
Deprecate util.prompt_for_user_token()
2020-06-14 18:01:14 +01:00
Stéphane Bruckert
816457b7d5
Merge pull request #500 from ysinjab/refactor-unittests-to-accept-generic-user
...
Refactor two unittests that could fail for some users and make them more generic
2020-05-29 09:37:59 +01:00
Yasser Sinjab
901b2031a2
Refactor SpotifyOauthError class
...
- add error and error description to SpotifyOauthError to reflect the data returned by web api when error happens
- unit test to SpotifyClientCredentials.get_access_token is added for invalid client
2020-05-27 23:26:47 +03:00
Yasser Sinjab
7906417c1d
Refactor two unittests that could fail for
...
some users and make them more generic.
2020-05-27 03:28:37 +03:00
Loisaida Sam
ccfda079c8
Propagate refresh token error, fixes #259 ( #261 )
...
* Propagate refresh token error #259
https://github.com/plamere/spotipy/issues/259
* Lint
* Format
Co-authored-by: Stephane Bruckert <contact@stephanebruckert.com>
2020-04-02 20:03:24 +01:00
Stephane Bruckert
73aac90bbe
Auto-close auth browser window
2020-04-01 21:25:48 +01:00
Dj
024a6c96d4
Retries For All Endpoints, fixes #347 ( #457 )
...
* test_improvements - Add __init__.py files to tests dirs so you can run all tests
* test_improvements - added helpers file, restructured tests to work without previous data and to be grouped with api type
* http_retries - Implement Retry for all requests
* Readme - Update README with contributing info
* PR Feedback - Added CONTRIBUTING.md, fixed README, fixed test
2020-03-29 17:18:23 +01:00
jugdizh
8b84300597
Added endpoints for shows/podcasts and episodes, closes #450
...
https://developer.spotify.com/documentation/web-api/reference-beta/#category-shows
https://developer.spotify.com/documentation/web-api/reference-beta/#category-episodes
2020-03-24 21:36:25 +00:00
Stephane Bruckert
9ed584b398
Player endpoints example and test
2020-02-22 11:12:29 +00:00
Alexey Paramonov
1f1e90ed39
Add requests_timeout parameter to auth module ( #233 )
2020-02-13 00:04:40 +00:00
JohannesPertl
04bdd27d85
Prompt option to always show a dialog when giving permissions to Spotify ( #438 )
...
* Add show_dialog option to prompt_for_user_token()
* Adjust test_get_authorize_url_shows_dialog_when_requested
2020-02-12 20:49:26 +00:00
S Murthy
3b0e8febc4
Linting of core subpackage + clean up imports ( #437 )
...
* Linting of OAuth2 mod. + update tests to detect core package path
* Tweak imports in tests + update tox ini to ignore Flake8 E501 error
* Tweak tox ini - ignore examples
* Remove `f`-string from OAuth2 mod.
* More import tweaks in core package + tests
* Update flake8 config. in tox ini - set line length limit to 99 chars.
2020-02-09 12:59:20 +00:00
Stephane Bruckert
93412a7b78
Add query doc link, closes #268
2020-02-02 16:04:44 +00:00
Stephane Bruckert
1ad7b909d4
Fix lint 2.7
2020-02-02 14:28:10 +00:00
Stephane Bruckert
e8928a47a7
Seperate unit and integration tests
2020-02-02 14:11:07 +00:00
Stephane Bruckert
51637d7b2c
Test for track popularity field
2020-01-26 13:55:41 +00:00
Wil Collins
ff7c33e97d
Support after/before in current_user_recently_played
2020-01-26 13:50:45 +00:00
CyanBook
349587ca32
Support for playlist_cover_image ( #431 )
2020-01-26 13:20:20 +00:00
Stéphane Bruckert
1807905572
Support to upload playlist covers ( #416 )
2020-01-20 19:56:24 +00:00
Stephane Bruckert
7fb97ed00e
No warning in python2
2020-01-16 23:30:40 +00:00
Stephane Bruckert
3d22cf29ce
Deprecate old endpoints
2020-01-16 23:14:52 +00:00
Stephane Bruckert
2ab985a3c8
Lint
2020-01-16 03:55:50 +00:00
Stephane Bruckert
83a1cb54ef
Fix doc and readme
2020-01-16 03:54:39 +00:00
Stéphane Bruckert
9b8c90dbe1
Merge branch 'master' into master
2020-01-15 19:16:38 +00:00
Stephane Bruckert
f8608c80eb
Close custom session in test
2020-01-13 20:09:37 +00:00
Stéphane Bruckert
f54830e272
Add linter, solves #348 ( #415 )
2020-01-12 13:19:40 +00:00
Stephane Bruckert
6ab96c3c91
Clean up + missing tests
2020-01-11 23:30:57 +00:00
Harrison
62277ac0a8
cast filterObject as list
...
and change request timeout
2020-01-11 19:56:32 +00:00
Harrison
816dd23482
remove unneccessary whitespaces at end of lines
2020-01-11 19:56:32 +00:00
Sandeep Murthy
2ce270554a
Update tests - make client credentials env. vars list a commonly accessible dictionary in spotipy/util.py
2020-01-11 19:54:20 +00:00
Sandeep Murthy
e5ccb9f355
Renaming some test modules: authtests.py -> test_auth.py, authtests2.py -> test_auth2.py, client_credential_tests.py -> test_client_credentials.py + update tox.ini
2020-01-11 19:54:20 +00:00
Sandeep Murthy
6639a98e24
Further clean up of tests
2020-01-11 19:54:20 +00:00
Sandeep Murthy
e9edf2a255
Miscellaneous fixes - clean up tests
2020-01-11 19:54:20 +00:00
Alisha Ukani
63eebfa930
Use client credentials flow to fix broken non-authorized requests
2018-01-16 18:58:21 -05:00
Thomas Hooper
6c3c384bf0
Add show_dialog auth url option
...
Optional. Whether or not to force the user to approve the app again if they’ve already done so. If false (default), a user who has already approved the application may be automatically redirected to the URI specified by redirect_uri. If true, the user will not be automatically redirected and will have to approve the app again.
From https://developer.spotify.com/web-api/authorization-guide/
2017-08-02 10:36:10 +01:00
Paul Lamere
d2f047514d
Merge pull request #150 from mbirtwell/state_per_authorize_tests
...
Add unittest for state per authorize
2017-01-18 17:38:40 -05:00
Michael Birtwell
19449da361
Add unittest for state per authorize
2017-01-07 16:27:25 +00:00
Michael Birtwell
d092683be3
Make is_token_expired public
...
Make is_token_expired_public on SpotifyClientCredentials and SpotifyOAuth.
This method is useful for checking whether tokens that have been stored in cookies etc have timed out. So it's useful for library users to have access to it.
Refactor common implementation of is_token_expired
2017-01-07 16:21:13 +00:00
Michael Birtwell
2b5583f2e6
Fix the unit tests
...
They were using the old name of refresh_access_token from before it was changed by @eugenio412.
2017-01-03 20:50:26 +00:00
Paul Lamere
eecff1fce7
Expanded 404 test
2016-12-31 17:54:12 -05:00
Paul Lamere
325bf99a29
Added market search tests
2016-12-31 11:47:41 -05:00
Paul Lamere
36c830021f
added unfollow endpoint + tests
2016-12-31 10:58:01 -05:00
Paul Lamere
76df337079
Added test for current_user_playlists
2016-12-31 10:33:31 -05:00
Paul Lamere
d18892a99e
Added timeout test
2016-12-31 09:52:03 -05:00
Willie Zhu
6d67858e8c
Add audio analysis API
2016-12-15 16:21:05 -05:00
Jason Hamilton
7f0f7efe49
fixes test for related artists. Fixes issue #128 .
2016-11-11 11:28:40 -08:00
Kevin M Granger
8a26e03178
Add OAuth cache tests
2016-06-16 20:34:10 -04:00
Paul Lamere
7a5beadd17
Added artist_recommendations example
...
fixed recs test
2016-03-30 15:41:22 -04:00
Matt Kane
7472f41948
add recommendations endpoints
2016-03-30 15:08:34 -04:00
Paul Lamere
dd021c4087
Added top lists support
2016-03-12 09:59:16 -05:00
Paul Lamere
4587a0771d
Cleaning up some tests
2016-02-20 08:54:11 -05:00
Paul Lamere
9d51880728
Added some audio feature tests
2016-02-20 08:33:31 -05:00
Paul Lamere
9c0b872e86
Adapted to new audio_features response
2016-02-17 09:18:06 -05:00
Paul Lamere
44bbfac8b7
Added category end points
2016-02-02 07:25:33 -05:00
Paul Lamere
365d3714bf
checkpoint
2015-12-30 16:11:27 -05:00
Paul Lamere
329ef5722b
Added api to get current users followed artists
2015-08-10 09:17:14 -04:00
Joona Hoikkala
3d46d7a035
Removed old comment, as the API is fixed in this regard
2015-06-05 12:12:34 +03:00
Joona Hoikkala
1f833afa45
Initial run of 2to3
2015-06-05 12:07:28 +03:00
jsundram
bbed19fdaa
Support for offset/limit with album/album_tracks API
2015-06-03 20:54:49 -07:00
Paul Lamere
b96fd5ca8d
Fixed problem with retry support
2015-04-28 06:25:06 -04:00
Paul Lamere
1b75562ce4
Support for client credentials flow
2015-04-01 10:21:56 -04:00
Faruk Sahin
8d4643c2e1
Add client credentials flow
2015-04-01 16:09:54 +02:00
Paul Lamere
948e3f1ef7
Changed 40x response test for unauthenticated playlist access
2015-01-05 14:55:39 -05:00
Aarni Koskela
004ef98a2c
Test Requests session functionality.
2015-01-03 20:26:35 +02:00
Paul Lamere
8adbfe6f6d
Added playlist tracks method. Updated tests.
2014-11-15 07:20:11 -05:00
Paul Lamere
373218083f
Added support for new_releases and featured_playlists endpoints.
2014-10-25 06:40:51 -04:00
Paul Lamere
1813b2502e
reuse testing playlist for every test
2014-08-21 06:56:23 -04:00
Paul Lamere
f43faea723
Added authtests
2014-08-20 15:50:32 -04:00
Paul Lamere
7601aaab58
refacord to support playlist editing
2014-08-20 14:08:49 -04:00
Paul Lamere
ceaa030468
Fixed album search test
2014-06-19 14:41:52 -04:00
Paul Lamere
a48feaab66
Updated search tests to match updated api
2014-05-16 14:02:33 -04:00
Paul Lamere
75df13d894
Added examples, improved docs
2014-05-16 07:56:59 -04:00
Paul Lamere
9105e58562
Added the 'collaboration.py' example
2014-04-07 13:10:25 -04:00
hugovk
6e8ae44c5a
pyflakes and some pep8
2014-04-05 21:52:57 +03:00
Paul Lamere
dfced54992
first commit
2014-04-05 09:12:01 -04:00