mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 00:45:55 +01:00
Add suite function to config command test module
This makes `python setup.py test` work again and fixes #576
This commit is contained in:
parent
165c28e967
commit
a47f3f0a2e
1 changed files with 8 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue