Commit graph

105 commits

Author SHA1 Message Date
hugovk 04d26a2c79 Fix params 2014-12-26 23:12:18 +02:00
hugovk 3941fd8ab5 Make test more robust 2014-12-18 21:13:28 +02:00
hugovk 3e4127bf6a Merge remote-tracking branch 'upstream/master'
Conflicts:
	test_pylast.py
2014-12-18 21:03:03 +02:00
Hugo bd9c351b21 Add from/to parameters to get_recent_tracks() 2014-10-25 15:52:01 +03:00
Hugo def9b2414a Fix chart tests that failed due to date ranges (take 2) 2014-09-11 15:37:17 +03:00
Hugo 2fea3a1b46 Last.fm returns no results for artist.getsimilar with limit=1, but limit=2 returns 2 2014-09-11 15:17:47 +03:00
Hugo bc7433990b Fix comparison with None for artist, album and event, with test. For #97. 2014-09-11 15:07:02 +03:00
Hugo e117a2b57c Add artist.get_band_members() with tests 2014-08-27 00:16:59 +03:00
hugovk 862ae11cfa Fix opus comparison with None 2014-08-18 16:24:01 +03:00
hugovk f3d31c9629 Check streamable is Boolean rather than a True/False value 2014-05-25 13:23:10 +03:00
hugovk 6a3ba02931 Check lowercase album title 2014-05-25 13:18:14 +03:00
hugovk db3ed0fc3c Add country tests 2014-04-07 13:18:36 +03:00
hugovk 1453e5137c Add event tests and fix a bug they found 2014-04-07 13:12:40 +03:00
hugovk d274ef6a3a Add some artist tests 2014-04-07 12:55:23 +03:00
hugovk 9243e98b94 Test some tag functions 2014-04-07 12:29:50 +03:00
hugovk 50f1a0ac8f Sometimes the lastest date range doesn't yet have charts, so get the latest-but-one 2014-04-07 11:53:01 +03:00
hugovk 5f69aa591c Add cacheable parameter to get_neighbours() 2014-04-07 11:49:40 +03:00
hugovk 1c26ef6d24 Fix tests 2014-04-07 11:41:41 +03:00
hugovk 3bf73a21ff Test set_tags() 2014-04-07 10:55:57 +03:00
hugovk b9d2ca8507 Fix test 2014-04-05 00:51:18 +03:00
hugovk e4ccd8b767 More tests. Don't bother with failing Py2.6 or 3.2, they're unsupported. 2014-04-05 00:30:33 +03:00
hugovk adbe8a8500 Refactor network names. Add some tag tests. Add stress test option. Add extra Python versions as allowed failures to Travis. 2014-04-04 21:53:45 +03:00
hugovk e28e2ef0d0 Test failed because a London event was in the 'city' of Camden. Let's try Manchester instead. 2014-03-21 17:39:06 +02:00
hugovk 536203fdb8 Remove print from test 2014-03-21 15:20:10 +02:00
hugovk 7fb56b1d28 Add some more tests 2014-03-21 14:58:33 +02:00
hugovk 7a3072b52c Add some Playlist tests 2014-03-17 23:14:51 +02:00
hugovk 862f7fe45c Add some Playlist tests 2014-03-17 22:48:08 +02:00
hugovk 7019b1b946 Python 3 fix: DeprecationWarning: Please use assertRaisesRegex instead 2014-03-12 15:32:27 +02:00
hugovk 506bee4fe4 Python 3 fix: DeprecationWarning: Please use assertRaisesRegex instead 2014-03-12 15:18:24 +02:00
hugovk 181ad7b6c9 Remove deprecated .has_key() 2014-03-12 13:16:23 +02:00
hugovk 13f642f375 Replace assertEqual(type(x), y) with assertIsInstance(x, y) 2014-03-08 22:02:39 +02:00
hugovk 2254430b39 Remove duplication into _extract_top_albums(doc, network) 2014-03-08 01:13:08 +02:00
hugovk 2235899c98 Remove duplication into _extract_top_artists(doc, network) 2014-03-08 00:53:31 +02:00
hugovk c3d99385ff Re-add get_weekly_album_charts(), get_weekly_artist_charts() and get_weekly_charts() helper functions 2014-03-07 20:22:14 +02:00
hugovk 4c4e3bfbba Move duplication into get_bio(), keeping existing get_bio_XXX() to call it 2014-03-07 16:01:54 +02:00
hugovk 4c94c8e53f Reinstate get_wiki_published_date(), get_wiki_summary() and get_wiki_content() as they may already be used by third parties. Add command-line options to the test. 2014-03-07 14:44:19 +02:00
hugovk 46b86b57da Create abstract, internal _Opus class for common stuff used by Album and Track 2014-03-07 14:04:37 +02:00
hugovk d5b536d51c Test: Use a unique filename for picking and delete it afterwards. Allows concurrent testing. 2014-03-07 10:35:24 +02:00
hugovk 5d62680753 Fix a test. Asked for a New York gig and got a Brooklyn one. Let's try London instead. 2014-03-07 10:23:10 +02:00
hugovk 342bb94045 Refactor get_wiki things to remove duplication 2014-03-06 23:05:23 +02:00
hugovk ac87cee29d Refactor shouts to duplicate code 2014-03-06 18:11:39 +02:00
hugovk 0747d5d20e Move share() up to _BaseObject, removing duplication in Artist, Event and Track 2014-03-06 16:21:19 +02:00
hugovk caea5e129a Move get_top_fans up to _BaseObject, removing duplication in Artist and Track 2014-03-06 15:23:33 +02:00
hugovk 73cf5b3068 Move weekly charts getters to _BaseObject, removes duplication between group, tag and user 2014-03-06 14:30:02 +02:00
hugovk 6301a5c670 Add _get_things to remove duplication 2014-03-06 11:42:20 +02:00
hugovk 1d532c0363 Run pyflakes and pep8 and update 2014-03-05 18:11:57 +02:00
hugovk 779af598db Refactor to include limit parameter to reduce bandwidth\n\nRefactor calls to chart.getTopArtists, chart.getTopTracks, tag.getTopTags and user.getTopTags to include the limit parameter (where available) to reduce the size of data sent by Last.fm.\n\nFor example, getting limit=1 can reduce receiving 101 items to 1, making the test take 0.5s rather than 1.2s.\n\nAlso return a list of TopItems rather than just items, and add cacheable parameter. 2014-03-05 10:29:16 +02:00
hugovk 4698993421 Jiggle the tests to increase coverage a bit 2014-03-05 01:29:58 +02:00
hugovk f8f9226e94 Remove a couple of resource warnings from not closing files 2014-03-05 01:01:27 +02:00
hugovk 2a48ccf369 The CI got different Spotify IDs to my computer. Generalise the tests. For #74. 2014-03-05 00:51:20 +02:00