From 325bf99a2960a94db3d701445668dbbb2892f9d1 Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Sat, 31 Dec 2016 11:47:41 -0500 Subject: [PATCH] Added market search tests --- tests/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index 7fc8c39..e21135a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -94,6 +94,12 @@ class TestSpotipy(unittest.TestCase): self.assertTrue(len(results['artists']['items']) > 0) self.assertTrue(results['artists']['items'][0]['name'] == 'Weezer') + def test_artist_search_with_market(self): + results = self.spotify.search(q='weezer', type='artist', market='GB') + self.assertTrue('artists' in results) + self.assertTrue(len(results['artists']['items']) > 0) + self.assertTrue(results['artists']['items'][0]['name'] == 'Weezer') + def test_artist_albums(self): results = self.spotify.artist_albums(self.weezer_urn) self.assertTrue('items' in results)