Commit graph

168 commits

Author SHA1 Message Date
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
Chris Newton 9cb6f6e181 Added a test case for limits on track.getSimilar 2018-02-28 20:28:56 -07:00
Hugo 2703b6b385 Use more helpful asserts, remove redundant 2018-01-27 12:59:20 +02:00
Hugo 22e03705c4 Passing test for limit=1 or 50, failing test for 100 2018-01-11 10:37:01 +02:00
Hugo 9da36d15d7 Fix case-sensitive tests 2017-12-08 20:48:15 +02:00
Philip Trauner 8f515d8779 Fixed test in accordance to 36ed30cc2b 2017-11-02 19:24:45 +01:00
hugovk c601d2f365 Fix minor things from code inspection 2017-10-24 00:54:34 +03:00
hugovk cb1f760731 http -> https 2017-10-24 00:11:49 +03:00
hugovk 52636b6764 Work around Last.fm's 'Namespace prefix opensearch on totalResults is not defined' XML error 2017-10-24 00:04:05 +03:00
hugovk b559495366 Assume no illegal XML and no more skipping broken Last.fm 2017-10-20 00:51:34 +03:00
hugovk b55b40c3fe Remove dead Last.fm album/track get ID 2017-10-20 00:45:17 +03:00
hugovk 666181df50 Last.fm API broken but allow either yyyy-mm-dd or Unix timestamp 2017-10-20 00:39:02 +03:00
hugovk 00b6c0a619 Remove dead Last.fm tag.getSimilar 2017-10-20 00:32:40 +03:00
hugovk c0a25fbabe Remove dead Last.fm artist band members 2017-10-20 00:29:57 +03:00
hugovk 8f3628a638 More tests 2017-10-19 23:37:10 +03:00
hugovk f9a8bf3dae More tests 2017-10-19 00:55:20 +03:00
hugovk ebc5b29f5c Remove dead or broken Last.fm user functions 2017-10-19 00:46:23 +03:00
hugovk 5fd9e4c8c5 Remove dead or broken Last.fm user functions 2017-10-19 00:33:02 +03:00
hugovk f2b699a11f More tests 2017-10-18 23:48:02 +03:00
hugovk f70254b947 Remove dead Last.fm tag search 2017-10-18 22:31:15 +03:00
hugovk 58b93c847e WIP: More tests 2017-10-18 08:57:39 +03:00
hugovk 5ba51c1e2c Finish refactor 2017-10-17 23:18:35 +03:00
hugovk 2edfc108d1 Fix test import 2017-10-17 23:14:00 +03:00
hugovk 2aa4dbdf88 Split Last.fm/Libre.fm tests 2017-10-17 21:57:17 +03:00
hugovk 31aeb6e69a Continue tests refactor 2017-10-17 21:45:20 +03:00
Hugo 25f419204a Start tests refactor 2017-09-26 18:01:17 +03:00
Hugo a8522fded3 Bring back test_caching on another method 2017-09-26 11:04:02 +03:00
hugovk 0eac6e9ae2 Remove redundant functions 2017-09-26 09:14:24 +03:00
hugovk ec68660014 Remove dead Last.fm chart test 2017-09-26 09:08:40 +03:00
hugovk 27ba0dd6b3 Remove dead Last.fm metro methods 2017-09-26 08:58:37 +03:00
hugovk 230439f52f Remove dead Last.fm event/venu methods 2017-09-26 08:38:32 +03:00
Hugo 61216f73c0 Remove dead Last.fm artist/user methods 2017-09-25 18:36:02 +03:00
Hugo 454c519fd9 Remove dead Last.fm group methods 2017-09-25 18:29:12 +03:00
Hugo 6d738d3f43 Remove dead Last.fm artist/shout methods 2017-09-25 18:24:13 +03:00
Hugo 56e193d149 Remove dead Last.fm playlist methods 2017-09-25 18:11:48 +03:00
Hugo f419c39ef0 Remove dead Last.fm library methods 2017-09-25 18:03:00 +03:00
Hugo 3e097b98fc Remove @handle_lastfm_exceptions: dead Last.fm things will be removed 2017-09-25 17:49:12 +03:00
Hugo c303fd0139 Remove dead Last.fm attributes: releasedate in album.getInfo 2017-09-25 17:37:24 +03:00
Hugo 0d4f674ac7 Remove dead Last.fm methods: get_top_fans 2017-09-25 17:28:02 +03:00
Hugo d6281e3829 Merge pull request #217 from pylast/fix-collect-nodes
Fix: _collect_nodes() break if there are no child nodes
2017-09-25 14:54:09 +03:00
Hugo e19061a437 Re-enable test for re-added Last.fm API 2017-09-25 14:29:44 +03:00
Hugo fe6673ba29 Add more tests 2017-09-25 13:14:17 +03:00
Hugo 8baac12650 Merge pull request #215 from pylast/fix-unclosed-ssl-socket-warning
Fix unclosed SSLSocket warning
2017-09-18 15:26:01 +03:00
Hugo 8e99f2b04e Use different artists for test_set_tags and test_remove_tags to avoid parallel test collisions 2017-09-18 14:47:21 +03:00
Hugo bdd1b8d5e5 Add failing test 2017-09-18 14:13:00 +03:00
Hugo b852ec0a80 'Test Title' is now 'test title' 2017-07-07 18:27:26 +03:00
Isaacs, Ben 5f8be53750 Update tests for https / new i18n URL scheme 2017-07-07 12:06:33 +01:00
hugovk a9549030f4 flake8 2017-02-13 19:39:07 +02:00
Hugo 210789a5fe Update error message for test_init_with_token
https://github.com/pylast/pylast/pull/198#issuecomment-279208373
2017-02-13 09:01:04 +02:00
Jace Browning 80f391761c Support authentication tokens to construct networks
Closes #193
2017-02-06 22:44:15 -05:00
hugovk 76d85f4c19 Update libre.fm test 2017-01-02 15:25:21 +02:00
hugovk 571edf23d9 Separate Libre.fm test from Last.fm tests 2016-10-30 12:25:10 +02:00
hugovk 4732bf3750 Skip tests if Last.fm API still broken 2016-04-23 15:46:49 +03:00
hugovk ea33074941 Skip test if Last.fm API still broken 2016-04-23 15:28:07 +03:00
hugovk 4c8d2e2a9b Split test into passing and failing tests 2016-04-23 15:27:28 +03:00
hugovk 8195725500 Skip tests if Last.fm API still broken 2016-04-23 14:48:29 +03:00
hugovk f17929e6cb Skip more tests which fail due to the (still) broken Last.fm API 2016-01-08 11:04:02 +02:00
hugovk 950c2e78ca Skip tests which fail due to the (still) broken Last.fm API 2016-01-07 18:09:28 +02:00
hugovk cbf2066ee5 Failing test for #146 2015-09-07 23:55:22 +03:00
Hugo van Kemenade fc206891af Merge pull request #137 from hugovk/brtkrbzhnv-develop
Support for User.GetPersonalTags
2015-07-24 12:16:00 +03:00
hugovk c421fd5cbd flake8 2015-07-24 11:22:39 +03:00
José Neto 2f72ec8270 pep8 compliance 2015-07-09 17:02:53 -03:00
José Neto 5f18619333 Add test case for Track.get_correction() 2015-07-01 17:04:43 -03:00