change assertGreater to assertGreaterEqual in some tests (#679)

This commit is contained in:
Gustavo Krieger authored and GitHub committed 2021-04-23 18:41:11 +01:00
1 parent c4f6a3fa4b
commit 49f46264c7
1 file changed
+3 -4
+3 -4
View File
@@ -237,9 +237,8 @@ class SpotipyLibraryApiTests(unittest.TestCase):
self.spotify.track('BadID123')
def test_current_user_saved_tracks(self):
# TODO make this not fail if someone doesnthave saved tracks
tracks = self.spotify.current_user_saved_tracks()
self.assertGreater(len(tracks['items']), 0)
self.assertGreaterEqual(len(tracks['items']), 0)
def test_current_user_save_and_unsave_tracks(self):
tracks = self.spotify.current_user_saved_tracks()
@@ -324,7 +323,7 @@ class SpotipyUserApiTests(unittest.TestCase):
def test_current_user_top_tracks(self):
response = self.spotify.current_user_top_tracks()
items = response['items']
self.assertGreater(len(items), 0)
self.assertGreaterEqual(len(items), 0)
def test_current_user_top_artists(self):
response = self.spotify.current_user_top_artists()
@@ -390,7 +389,7 @@ class SpotipyFollowApiTests(unittest.TestCase):
def test_current_user_follows(self):
response = self.spotify.current_user_followed_artists()
artists = response['artists']
self.assertGreater(len(artists['items']), 0)
self.assertGreaterEqual(len(artists['items']), 0)
def test_user_follows_and_unfollows_artist(self):
# Initially follows 1 artist