skip pyechonest tests when library not installed

This commit is contained in:
Adrian Sampson 2014-04-13 13:26:51 -07:00
parent 9dd4ad96bd
commit 8555fa7640

View file

@ -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')