From a47f3f0a2e4f54fd0dd412516fd7e09a85cae1db Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Thu, 6 Mar 2014 11:13:24 +0100 Subject: [PATCH] Add suite function to config command test module This makes `python setup.py test` work again and fixes #576 --- test/test_config_command.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_config_command.py b/test/test_config_command.py index 5ef285dcd..b180d03dd 100644 --- a/test/test_config_command.py +++ b/test/test_config_command.py @@ -5,6 +5,7 @@ from beets import ui from beets import config import _common +from _common import unittest class ConfigCommandTest(_common.TestCase): @@ -113,3 +114,10 @@ class ConfigCommandTest(_common.TestCase): def execlp_restore(self): if hasattr(self, '_orig_execlp'): os.execlp = self._orig_execlp + + +def suite(): + return unittest.TestLoader().loadTestsFromName(__name__) + +if __name__ == '__main__': + unittest.main(defaultTest='suite')