mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
change assertGreater to assertGreaterEqual in some tests (#679)
This commit is contained in:
parent
c4f6a3fa4b
commit
49f46264c7
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user