Add suite function to config command test module

This makes `python setup.py test` work again and fixes #576
This commit is contained in:
Thomas Scholtes 2014-03-06 11:13:24 +01:00
parent 165c28e967
commit a47f3f0a2e

View file

@ -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')