Commit graph

130 commits

Author SHA1 Message Date
Hugo 58fa3094d8 Add failing MBID test for 'Track not found' 2020-08-22 00:22:50 +03: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
Hugo f18fd3f758 TestPyLastWithLastFm and TestPyLastWithLibreFm now inherit from PyLastTestCase 2018-04-16 21:09:52 +03:00
Hugo 70aad87a1b Store track images for future use, refactor album image fetching 2018-04-16 19:02:32 +03:00
Hugo 60dea38d10 Add assert_startswith/endswith helper functions 2018-04-16 18:31:33 +03:00
Hugo fa601b8111 Refactor to store Album/Artist images in info dict 2018-04-16 09:53:31 +03:00
Hugo d1af8d3ebc Store artist images for future use 2018-04-15 23:43:39 +03:00
Hugo f923cd2c50 Replace print with logging 2018-04-15 21:55:08 +03:00
Hugo cf2d9113dd Add test for storing album images on search 2018-04-14 22:38:43 +03:00
Hugo a607dbe491 flake8 2018-04-08 16:45:36 +03:00
Hugo 06f6cf627d Failing test for user.get_weekly_artist_charts 2018-04-05 18:02:16 +03:00
Hugo 0759bf5b0c
Test against a certain user
One we know has more than two top tracks, rather than a new test user who might not.
2018-03-18 09:58:41 +02:00
Hugo acdc23d7e7 Fix test case for changed test data 2018-03-01 11:24:53 +02:00
Hugo b87fefe9ab Move track tests to test_track.py 2018-03-01 11:23:06 +02:00
Hugo 36f7e9619b Shorten test names 2018-03-01 11:19:34 +02:00