From 6d22c7489c8eb02f22cc88d01f9f60363156b038 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Fri, 25 Apr 2014 12:56:01 +0200 Subject: [PATCH] Test build with setup.py Since some builds use `python ./setup.py test` to test beets we want to make sure it runs smoothly. --- .gitignore | 2 +- setup.py | 3 +++ test/test_importfeeds.py | 2 ++ tox.ini | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 74f6912b7..2f3df66af 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,4 @@ beets.egg-info/* build/* docs/_build/* man - +*.egg diff --git a/setup.py b/setup.py index cd6b17ebf..d525cb221 100755 --- a/setup.py +++ b/setup.py @@ -88,6 +88,9 @@ setup( 'responses', 'pyechonest', 'mock', + 'flask', + 'rarfile', + 'pylast', ], # Plugin (optional) dependencies: diff --git a/test/test_importfeeds.py b/test/test_importfeeds.py index 477cc3f2f..bee7fa28a 100644 --- a/test/test_importfeeds.py +++ b/test/test_importfeeds.py @@ -12,6 +12,8 @@ from beetsplug.importfeeds import album_imported, ImportFeedsPlugin class ImportfeedsTestTest(unittest.TestCase): def setUp(self): + config.clear() + config.read(user=False) self.importfeeds = ImportFeedsPlugin() self.lib = Library(':memory:') self.feeds_dir = tempfile.mkdtemp() diff --git a/tox.ini b/tox.ini index e84f536ac..186dfb36f 100644 --- a/tox.ini +++ b/tox.ini @@ -22,6 +22,8 @@ commands = deps = {[testenv]deps} unittest2 +commands = + python ./setup.py test {posargs} [testenv:py27] deps =