Test build with setup.py

Since some builds use `python ./setup.py test` to test beets we want to make
sure it runs smoothly.
This commit is contained in:
Thomas Scholtes 2014-04-25 12:56:01 +02:00
parent 73a1b63f7d
commit 6d22c7489c
4 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View file

@ -30,4 +30,4 @@ beets.egg-info/*
build/* build/*
docs/_build/* docs/_build/*
man man
*.egg

View file

@ -88,6 +88,9 @@ setup(
'responses', 'responses',
'pyechonest', 'pyechonest',
'mock', 'mock',
'flask',
'rarfile',
'pylast',
], ],
# Plugin (optional) dependencies: # Plugin (optional) dependencies:

View file

@ -12,6 +12,8 @@ from beetsplug.importfeeds import album_imported, ImportFeedsPlugin
class ImportfeedsTestTest(unittest.TestCase): class ImportfeedsTestTest(unittest.TestCase):
def setUp(self): def setUp(self):
config.clear()
config.read(user=False)
self.importfeeds = ImportFeedsPlugin() self.importfeeds = ImportFeedsPlugin()
self.lib = Library(':memory:') self.lib = Library(':memory:')
self.feeds_dir = tempfile.mkdtemp() self.feeds_dir = tempfile.mkdtemp()

View file

@ -22,6 +22,8 @@ commands =
deps = deps =
{[testenv]deps} {[testenv]deps}
unittest2 unittest2
commands =
python ./setup.py test {posargs}
[testenv:py27] [testenv:py27]
deps = deps =