Style fixes for latest pycodestyle changes

This commit is contained in:
Adrian Sampson 2018-10-24 17:05:38 -04:00
parent d8df9f1b72
commit 0a74e0fd3f
4 changed files with 8 additions and 8 deletions

View file

@ -137,7 +137,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Global options
def test_import_global(self):
config['filefilter']['path'] = '.*track_1.*\.mp3'
config['filefilter']['path'] = '.*track_1.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),
@ -151,7 +151,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Album options
def test_import_album(self):
config['filefilter']['album_path'] = '.*track_1.*\.mp3'
config['filefilter']['album_path'] = '.*track_1.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),
@ -169,7 +169,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Singleton options
def test_import_singleton(self):
config['filefilter']['singleton_path'] = '.*track_1.*\.mp3'
config['filefilter']['singleton_path'] = '.*track_1.*\\.mp3'
self.__run([
'Singleton: %s' % displayable_path(self.artist_paths[0]),
'Singleton: %s' % displayable_path(self.misc_paths[0])
@ -188,8 +188,8 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Album and singleton options
def test_import_both(self):
config['filefilter']['album_path'] = '.*track_1.*\.mp3'
config['filefilter']['singleton_path'] = '.*track_2.*\.mp3'
config['filefilter']['album_path'] = '.*track_1.*\\.mp3'
config['filefilter']['singleton_path'] = '.*track_2.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),

View file

@ -165,7 +165,7 @@ class LyricsPluginTest(unittest.TestCase):
 one
<br class='myclass'>
two !
<br><br \>
<br><br \\>
<blink>four</blink>"""
self.assertEqual(lyrics._scrape_strip_cruft(text, True),
"one\ntwo !\n\nfour")

View file

@ -60,7 +60,7 @@ class CommandParseTest(unittest.TestCase):
def test_backslash_in_arg(self):
s = r'command "hello \\ there"'
c = bpd.Command(s)
self.assertEqual(c.args, [u'hello \ there'])
self.assertEqual(c.args, [u'hello \\ there'])
def suite():

View file

@ -50,7 +50,7 @@ class ThePluginTest(_common.TestCase):
self.assertEqual(ThePlugin().the_template_func(u'An A'), u'A, An')
def test_custom_pattern(self):
config['the']['patterns'] = [u'^test\s']
config['the']['patterns'] = [u'^test\\s']
config['the']['format'] = FORMAT
self.assertEqual(ThePlugin().the_template_func(u'test passed'),
u'passed, test')