mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
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:
parent
73a1b63f7d
commit
6d22c7489c
4 changed files with 8 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -30,4 +30,4 @@ beets.egg-info/*
|
||||||
build/*
|
build/*
|
||||||
docs/_build/*
|
docs/_build/*
|
||||||
man
|
man
|
||||||
|
*.egg
|
||||||
|
|
|
||||||
3
setup.py
3
setup.py
|
|
@ -88,6 +88,9 @@ setup(
|
||||||
'responses',
|
'responses',
|
||||||
'pyechonest',
|
'pyechonest',
|
||||||
'mock',
|
'mock',
|
||||||
|
'flask',
|
||||||
|
'rarfile',
|
||||||
|
'pylast',
|
||||||
],
|
],
|
||||||
|
|
||||||
# Plugin (optional) dependencies:
|
# Plugin (optional) dependencies:
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -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 =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue