mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
revert unnecessary double --> single quotes
This commit is contained in:
parent
337cf2a1c3
commit
104f6185ab
2 changed files with 7 additions and 7 deletions
|
|
@ -388,9 +388,9 @@ class SpotifyPlugin(BeetsPlugin):
|
|||
def output_results(self, results):
|
||||
if results:
|
||||
ids = [x['id'] for x in results]
|
||||
if self.config['mode'].get() == 'open':
|
||||
if self.config['mode'].get() == "open":
|
||||
self._log.info(u'Attempting to open Spotify with playlist')
|
||||
spotify_url = self.playlist_partial + ','.join(ids)
|
||||
spotify_url = self.playlist_partial + ",".join(ids)
|
||||
webbrowser.open(spotify_url)
|
||||
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -46,20 +46,20 @@ class SpotifyPluginTest(_common.TestCase, TestHelper):
|
|||
},
|
||||
)
|
||||
self.spotify = spotify.SpotifyPlugin()
|
||||
opts = ArgumentsMock('list', False)
|
||||
opts = ArgumentsMock("list", False)
|
||||
self.spotify.parse_opts(opts)
|
||||
|
||||
def tearDown(self):
|
||||
self.teardown_beets()
|
||||
|
||||
def test_args(self):
|
||||
opts = ArgumentsMock('fail', True)
|
||||
opts = ArgumentsMock("fail", True)
|
||||
self.assertEqual(False, self.spotify.parse_opts(opts))
|
||||
opts = ArgumentsMock('list', False)
|
||||
opts = ArgumentsMock("list", False)
|
||||
self.assertEqual(True, self.spotify.parse_opts(opts))
|
||||
|
||||
def test_empty_query(self):
|
||||
self.assertEqual(None, self.spotify.query_spotify(self.lib, u'1=2'))
|
||||
self.assertEqual(None, self.spotify.query_spotify(self.lib, u"1=2"))
|
||||
|
||||
@responses.activate
|
||||
def test_missing_request(self):
|
||||
|
|
@ -118,7 +118,7 @@ class SpotifyPluginTest(_common.TestCase, TestHelper):
|
|||
item.add(self.lib)
|
||||
results = self.spotify.query_spotify(self.lib, u'Happy')
|
||||
self.assertEqual(1, len(results))
|
||||
self.assertEqual(u'6NPVjNh8Jhru9xOmyQigds', results[0]['id'])
|
||||
self.assertEqual(u"6NPVjNh8Jhru9xOmyQigds", results[0]['id'])
|
||||
self.spotify.output_results(results)
|
||||
|
||||
params = _params(responses.calls[0].request.url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue