wisp3rwind
807f124ef8
really remove all six imports
...
apparently, pyupgrade didn't know how to handle these...
2022-01-20 00:26:01 +01:00
Paldin Bet Eivaz
a1fe106dc5
fixed linting error
2021-11-18 09:37:15 -08:00
Paldin Bet Eivaz
d7055fac1d
added test for track_for_id method
2021-11-17 16:24:10 -08:00
Andrew Rogl
1ec87a3bdd
pyupgrade beetsplug and tests
...
All tests working
More tidy up to be done
2021-08-26 19:12:51 +10:00
Rahul Ahuja
7b57b0b608
Appease Flake8
2019-01-22 10:53:18 -08:00
Rahul Ahuja
3a67eae46d
Use track attrs directly, better naming/docstrings
2019-01-22 10:41:18 -08:00
Rahul Ahuja
77f9a930b7
Fix remaining test, use official doc wording
2019-01-21 23:15:08 -08:00
Rahul Ahuja
0527edbd48
Fix test index, add docstrings
2019-01-21 23:05:47 -08:00
Rahul Ahuja
2cda2b5b3a
Remove hardcoded ordering of filters in tests
2019-01-21 22:53:23 -08:00
Rahul Ahuja
237792a4fb
Fix other test_track_request case
2019-01-21 22:40:15 -08:00
Rahul Ahuja
f63beca39a
Switch filter ordering in test
2019-01-21 22:35:12 -08:00
Rahul Ahuja
5472a49991
Add candidates and item_candidates, modularize Search API queries
2019-01-21 21:24:41 -08:00
Rahul Ahuja
b95eaa8ffe
fix test, document Spotify ID
2019-01-20 02:20:10 -08:00
Rahul Ahuja
9a30000b56
better naming, formatting
2019-01-20 02:04:46 -08:00
Rahul Ahuja
104f6185ab
revert unnecessary double --> single quotes
2019-01-19 23:57:36 -08:00
Rahul Ahuja
337cf2a1c3
appease Flake8
2019-01-19 23:35:06 -08:00
Rahul Ahuja
dc77943da2
try oauth token mock
2019-01-19 23:21:02 -08:00
Adrian Sampson
a88682e7bb
Undo from _common import unittest indirection
...
This was a vestige from when we used to need the unittest2 library for pre-2.7
compatibility. Now that we require Python 2.7, we aren't using that library
and this indirection wasn't doing any good.
2016-11-26 18:46:44 -05:00
Johnny Robeson
4649226b9b
use urllib from six.moves
2016-06-23 04:40:18 -04:00
Johnny Robeson
a1314b7bda
move spotify test json to json files
2016-06-14 21:51:27 -04:00
Adrian Sampson
71b9fd785c
Revert "Do __name__ comparison with bytes and not unicode"
...
This reverts commit 9c41c39913 .
That commit used byte strings for the `if __name__ == '__main__'` pattern,
which was necessary when we were doing unicode_literals. But it is wrong on
Python 3, and now that we're liberated from unicode_literals, we need to go
back to native strings for this comparison.
2016-05-29 19:19:59 -07:00
Adrian Sampson
e54c7eec3d
Standardize __future__ imports without parentheses
...
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00
Peter Kessen
a3138177e6
Removed unicode_literals from test_spotify
2016-02-24 18:08:23 +01:00
Peter Kessen
6b408507f6
added encoding as comment in files
...
added line like
# -*- coding: utf-8 -*-
to all files without license
2015-11-19 18:52:57 +01:00
Bruno Cauet
5e26d483a8
Replace deprecated assertEquals with assertEqual.
2015-04-01 10:48:03 +02:00
Bruno Cauet
f1e13cf886
Offer verbose and very verbose modes
...
'verbose' is now an int and not a boolean. '-v' is level 1, '-vv' level
2. In the configuration it can be set with 'verbose: 1' or 'verbose: 2'.
Improve #1244 : auditing current log levels of plugins remains.
2015-02-10 17:13:15 +01:00
Bruno Cauet
53c21330c2
All tests use unicode_literals
2015-01-20 15:58:02 +01:00
Bruno Cauet
02d8e88ef1
Replace all mentions of 'str' with 'bytes'
2015-01-20 12:48:15 +01:00
Bruno Cauet
9c41c39913
Do __name__ comparison with bytes and not unicode
2015-01-20 12:03:57 +01:00
Bruno Cauet
90b388b775
Use __future__ imports but unicode_literals everywhere
...
Include import of __future__ features division, absolute_imports and
print_function everywhere. Don't add unicode_literals yet for it is
harder to convert.
Goal is smoothing the transition to python 3.
2015-01-19 12:25:16 +01:00
Bruno Cauet
2902cda036
tests: use absolute imports everywhere
2015-01-19 12:25:15 +01:00
Adrian Sampson
0bdd0c7159
Fix mocking in Spotify tests
...
The mock wasn't being triggered; these tests were going to the network. Now we
don't match on the query string and instead test that it was correct by
actually parsing it.
2014-09-16 10:43:53 -07:00
Olin Gay
d076e14515
Complete PEP8 cleanup of spotify plugin
2014-08-17 09:53:54 -04:00
Olin Gay
ce4b45ec76
Pull request for Spotify plugin development, see: https://groups.google.com/forum/#!topic/beets-users/2xsOZC-NMNk
2014-08-03 19:55:50 -04:00