mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 07:23:33 +01:00
Fix new flake8 warnings
This commit is contained in:
parent
f43a0c3270
commit
5db2b4ccaa
3 changed files with 4 additions and 2 deletions
|
|
@ -613,7 +613,7 @@ class FfmpegBackend(Backend):
|
|||
return float(value)
|
||||
except ValueError:
|
||||
raise ReplayGainError(
|
||||
u"ffmpeg output: expected float value, found {1}"
|
||||
u"ffmpeg output: expected float value, found {0}"
|
||||
.format(value)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -241,6 +241,8 @@ def implements(commands, expectedFailure=False): # noqa: N803
|
|||
|
||||
|
||||
bluelet_listener = bluelet.Listener
|
||||
|
||||
|
||||
@mock.patch("beets.util.bluelet.Listener")
|
||||
def start_server(args, assigned_port, listener_patch):
|
||||
"""Start the bpd server, writing the port to `assigned_port`.
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ class PlaylistQueryTestHelper(PlaylistTestHelper):
|
|||
]))
|
||||
|
||||
def test_name_query_with_nonexisting_playlist(self):
|
||||
q = u'playlist:nonexisting'.format(self.playlist_dir)
|
||||
q = u'playlist:nonexisting'
|
||||
results = self.lib.items(q)
|
||||
self.assertEqual(set(results), set())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue