mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
use underscore in name for pep-8s sake
This commit is contained in:
parent
ab2b1fa900
commit
72ce9ea3eb
8 changed files with 12 additions and 12 deletions
|
|
@ -348,7 +348,7 @@ def system_mock(name):
|
|||
platform.system = old_system
|
||||
|
||||
|
||||
def slowTest(unused=None):
|
||||
def slow_test(unused=None):
|
||||
def _id(obj):
|
||||
return obj
|
||||
if 'SKIP_SLOW_TESTS' in os.environ:
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ class GoogleImageTest(UseThePlugin):
|
|||
self.assertEqual(list(result_url), [])
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class ArtImporterTest(UseThePlugin):
|
||||
def setUp(self):
|
||||
super(ArtImporterTest, self).setUp()
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class TestHelper(helper.TestHelper):
|
|||
.format(path, tag))
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class ImportConvertTest(unittest.TestCase, TestHelper):
|
||||
|
||||
def setUp(self):
|
||||
|
|
@ -100,7 +100,7 @@ class ImportConvertTest(unittest.TestCase, TestHelper):
|
|||
self.assertTrue(os.path.isfile(item.path))
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class ConvertCliTest(unittest.TestCase, TestHelper):
|
||||
|
||||
def setUp(self):
|
||||
|
|
@ -188,7 +188,7 @@ class ConvertCliTest(unittest.TestCase, TestHelper):
|
|||
self.assertFalse(os.path.exists(converted))
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class NeverConvertLossyFilesTest(unittest.TestCase, TestHelper):
|
||||
"""Test the effect of the `never_convert_lossy_files` option.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ class TestModelWithGetters(dbcore.Model):
|
|||
return {}
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class MigrationTest(unittest.TestCase):
|
||||
"""Tests the ability to change the database schema between
|
||||
versions.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class ModifyFileMocker(object):
|
|||
f.write(contents)
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class EditCommandTest(unittest.TestCase, TestHelper):
|
||||
""" Black box tests for `beetsplug.edit`. Command line interaction is
|
||||
simulated using `test.helper.control_stdin()`, and yaml editing via an
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ class ImportHelper(TestHelper):
|
|||
self.assertEqual(len(os.listdir(self.libdir)), 0)
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class NonAutotaggedImportTest(_common.TestCase, ImportHelper):
|
||||
def setUp(self):
|
||||
self.setup_beets(disk=True)
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ class LoggingLevelTest(unittest.TestCase, helper.TestHelper):
|
|||
self.assertIn('dummy: debug import_stage', logs)
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class ConcurrentEventsTest(TestCase, helper.TestHelper):
|
||||
"""Similar to LoggingLevelTest but lower-level and focused on multiple
|
||||
events interaction. Since this is a bit heavy we don't do it in
|
||||
|
|
|
|||
|
|
@ -594,7 +594,7 @@ class InputTest(_common.TestCase):
|
|||
self.assertEqual(album, u'\xc2me')
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class ConfigTest(unittest.TestCase, TestHelper):
|
||||
def setUp(self):
|
||||
self.setup_beets()
|
||||
|
|
@ -1036,7 +1036,7 @@ class PathFormatTest(_common.TestCase):
|
|||
self.assertEqual(pf[1:], default_formats)
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class PluginTest(_common.TestCase):
|
||||
def test_plugin_command_from_pluginpath(self):
|
||||
config['pluginpath'] = [os.path.join(_common.RSRC, 'beetsplug')]
|
||||
|
|
@ -1044,7 +1044,7 @@ class PluginTest(_common.TestCase):
|
|||
ui._raw_main(['test'])
|
||||
|
||||
|
||||
@_common.slowTest()
|
||||
@_common.slow_test()
|
||||
class CompletionTest(_common.TestCase):
|
||||
def test_completion(self):
|
||||
# Load plugin commands
|
||||
|
|
|
|||
Loading…
Reference in a new issue