mirror of
https://github.com/beetbox/beets.git
synced 2026-02-15 03:41:45 +01:00
Style fixes for latest pycodestyle changes
This commit is contained in:
parent
d8df9f1b72
commit
0a74e0fd3f
4 changed files with 8 additions and 8 deletions
|
|
@ -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]),
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue