Commit graph

78 commits

Author SHA1 Message Date
Hugo van Kemenade
eb4af40d64 autotyping: --scalar-return: add a return annotation to functions that only return literal bool, str, bytes, int, or float objects 2022-04-03 12:45:23 +03:00
Hugo van Kemenade
6c3f3afb3a autotyping: --none-return: add a -> None return type to functions without any return, yield, or raise in their body 2022-04-03 12:45:02 +03:00
Hugo van Kemenade
05b4ad8c62 Disable the flaky write tests 2021-10-19 13:57:47 +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
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
aae4bb3693 Replace unittest with pytest 2020-06-01 15:50:27 +03:00
Hugo
af036ec5d5 pre-commit autoupdate 2020-02-27 22:29:32 +02:00
Hugo
d589c5ef8a Add pre-commit and fix isort 2019-09-26 10:31:49 +03:00
Hugo
4eec2e763d Only run test_love on a single Python version to avoid collisions 2019-02-03 12:51:44 +02: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
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
60dea38d10 Add assert_startswith/endswith helper functions 2018-04-16 18:31:33 +03:00
hugovk
b559495366 Assume no illegal XML and no more skipping broken Last.fm 2017-10-20 00:51:34 +03:00
hugovk
5ba51c1e2c Finish refactor 2017-10-17 23:18:35 +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