mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 04:22:40 +01:00
skip pyechonest tests when library not installed
This commit is contained in:
parent
9dd4ad96bd
commit
8555fa7640
1 changed files with 5 additions and 1 deletions
|
|
@ -22,8 +22,12 @@ from beets.library import Item
|
|||
|
||||
|
||||
class EchonestCliTest(unittest.TestCase, TestHelper):
|
||||
|
||||
def setUp(self):
|
||||
try:
|
||||
__import__('pyechonest')
|
||||
except ImportError:
|
||||
self.skipTest('pyechonest not available')
|
||||
|
||||
self.setup_beets()
|
||||
self.load_plugins('echonest')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue