Skip to content

Commit

Permalink
skip pyechonest tests when library not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Apr 13, 2014
1 parent 9dd4ad9 commit 8555fa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_echonest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@


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

Expand Down

0 comments on commit 8555fa7

Please sign in to comment.