Commit graph

143 commits

Author SHA1 Message Date
Hugo van Kemenade c8a64dbee9 Test image is now gif 2021-08-02 20:42:20 +03:00
Hugo van Kemenade 3fcf45062d Blacken docs 2020-12-30 13:09:06 +02:00
Hugo van Kemenade 10107a04e4 Merge remote-tracking branch 'upstream/master' into streaming 2020-12-29 21:38:44 +02:00
Hugo van Kemenade 8be8c4efb6 No need to set param with default 2020-12-29 21:32:29 +02:00
Hugo van Kemenade 7327b30337 Refactor to avoid shadowing built-in 2020-12-27 14:22:41 +02:00
Hugo van Kemenade a5034c43c0 Refactor with pytest.mark.parametrize 2020-12-27 14:05:52 +02:00
Hugo van Kemenade 08274028eb Set limit to 50 by default, not 1 2020-12-27 14:01:12 +02:00
Hugo van Kemenade 5413d636ce Fix test 2020-11-16 23:45:25 +02:00
Hugo van Kemenade 85f58472a3 Remove deprecated Artist.get_cover_image, User.get_artist_tracks and STATUS_TOKEN_ERROR 2020-09-12 00:21:12 +03:00
Hugo van Kemenade 0f96fe58b1 Format with Black and isort 2020-09-11 23:47:42 +03:00
Hugo 3129d6052d Run xfail tests only once: no point re-running 2020-08-23 12:11:07 +03:00
Hugo 48f4be0bcf Rewrite and add pragmas to improve coverage of non-runnable test code 2020-08-22 11:45:33 +03:00
kvanzuijlen 52abbba2bd tox lint changes 2020-07-12 13:32:32 +02:00
kvanzuijlen 92004058ba Added option to stream from resources to reduce memory usage 2020-07-12 13:31:48 +02:00
Hugo 32461c089d Only test write operations on a single Python version to avoid collision failures 2020-06-24 22:58:25 +03:00
Hugo 158273e0ae Deprecate Artist.get_cover_image, they're no longer available from Last.fm 2020-06-22 22:20:45 +03:00
Hugo 6f62857164 Add test for get_album() changes 2020-06-02 16:02:26 +03:00
Hugo aae4bb3693 Replace unittest with pytest 2020-06-01 15:50:27 +03:00
Hugo 7689a1e95a User.get_now_playing: Add album and cover image to info 2020-06-01 14:52:29 +03:00
Hugo 925cae2031 Add test for artist with no bio content 2020-05-08 12:42:36 +03:00
Hugo f806a1f36a Fix DeprecationWarning: Please use assertRegex instead 2020-03-04 22:37:05 +02:00
Hugo van Kemenade d367d913c2
Merge pull request #320 from pylast/313-limit-none
Fix regression calling get_recent_tracks with limit=None
2020-03-04 21:57:46 +02:00
Hugo af036ec5d5 pre-commit autoupdate 2020-02-27 22:29:32 +02:00
Hugo 21f127f88b Fix regression calling get_recent_tracks with limit=None 2020-02-15 18:19:59 +02:00
Hugo 6b04456c55 Mock is part of stdlib in Python 3 2019-12-17 22:32:53 +02:00
Hugo d28c0ec167 Xfail those two to allow the rest to pass 2019-12-17 22:19:57 +02:00
Hugo 109315d93d Remove Python 2 warnings, apply lint updates 2019-09-26 11:10:52 +03:00
Hugo d589c5ef8a Add pre-commit and fix isort 2019-09-26 10:31:49 +03:00
Paddez 7694de346e Store Album Art URLs when you call GetTopAlbums.
GetTopAlbums returns AlbumArt information alongside the TopAlbums.
We should store this in the Album() info variable, so we don't have to follow up with an additional GetInfo() call if we want the Album Art.

Signed-off-by: Paddez <dave@paddez.com>
2019-06-22 22:36:41 +01:00
Hugo c7b927d94c user.getArtistTracks has been removed from Last.fm 2019-06-03 16:45:54 +03:00
Hugo 44d0c2c966 user.getArtistTracks has now been removed from Last.fm and returns an error 2019-06-02 22:54:03 +03:00
Hugo f439f205dc Xfail user.getArtistTracks, looks like Last.fm are now removing it from the API 2019-05-13 11:08:18 +03:00
Hugo da473448f4 Add support for new user.getTrackScrobbles 2019-02-27 19:47:31 +02:00
Hugo dc464788f2 Aside: make test_album_tags_are_topitems more reliable 2019-02-27 17:19:20 +02:00
Hugo 65e182c5dd Aside: make test_scrobble more reliable 2019-02-27 17:01:23 +02:00
Hugo 9d125506e5 Deprecate User.get_artist_tracks as Last.fm will remove it soon 2019-02-26 22:53:31 +02:00
Hugo b41c5bc85a Add a delay to allow Last.fm to update unloves 2019-02-03 14:39:21 +02:00
Hugo 0ad27dbc7e Only run test_unlove on a single Python version to avoid collisions 2019-02-03 14:02:28 +02:00
Hugo 7f207c50da Add a delay to allow Last.fm to update unloves 2019-02-03 13:55:54 +02:00
Hugo 4eec2e763d Only run test_love on a single Python version to avoid collisions 2019-02-03 12:51:44 +02:00
Hugo d4fe9e5b36 Add a delay to allow Last.fm to update scrobbles 2019-02-03 12:42:50 +02:00
Hugo cfb8134872 Only run test_scrobble on a single Python version to avoid collisions 2019-02-02 14:15:31 +02:00
Hugo 07fac0628c Drop support for legacy Python 2 2018-11-27 08:59:01 +02:00
Hugo 6503002692 Fix commented-out formatting post-Black 2018-06-06 11:26:00 +03:00
Hugo da9465c100 Format with Black 18.6b1 2018-06-06 10:19:04 +03:00
Hugo 8bca1d2794 Keep flaky max_runs=3, sometimes build jobs overlap a bit 2018-05-27 20:58:33 +03:00
Hugo 000993c328 Fix test_cacheable_user[_artist_tracks] 2018-05-27 20:14:13 +03:00
Hugo b3a4ac5388 Fix: 'list' object has no attribute 'track' 2018-05-27 19:23:54 +03:00
Hugo 1d5e965183 Fix pep8-naming 2018-05-11 10:39:16 +03:00
Hugo 8def14de48 Tests no longer flaky, let's keep but reduce in case of temp net errors 2018-04-16 21:57:29 +03:00