diff --git a/test/_common.py b/test/_common.py index 8105ef342..9f8b9f146 100644 --- a/test/_common.py +++ b/test/_common.py @@ -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: diff --git a/test/test_art.py b/test/test_art.py index b7b52c245..7902bb213 100644 --- a/test/test_art.py +++ b/test/test_art.py @@ -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() diff --git a/test/test_convert.py b/test/test_convert.py index 8ba71bdc9..72d52feaa 100644 --- a/test/test_convert.py +++ b/test/test_convert.py @@ -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. """ diff --git a/test/test_dbcore.py b/test/test_dbcore.py index 4b4cc18bb..39b7eea1e 100644 --- a/test/test_dbcore.py +++ b/test/test_dbcore.py @@ -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. diff --git a/test/test_edit.py b/test/test_edit.py index 106cf1f25..25b24cea0 100644 --- a/test/test_edit.py +++ b/test/test_edit.py @@ -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 diff --git a/test/test_importer.py b/test/test_importer.py index fea4d78a0..6eacab32d 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -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) diff --git a/test/test_logging.py b/test/test_logging.py index 478b7a7c6..a3fe363b9 100644 --- a/test/test_logging.py +++ b/test/test_logging.py @@ -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 diff --git a/test/test_ui.py b/test/test_ui.py index 207d39261..ed1740643 100644 --- a/test/test_ui.py +++ b/test/test_ui.py @@ -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