Skip to content

Commit

Permalink
Fixed audio_features API wrapper function return structure (#653)
Browse files Browse the repository at this point in the history
Co-authored-by: Stéphane Bruckert <[email protected]>
  • Loading branch information
2 people authored and dieser-niko committed Oct 8, 2024
1 parent 6f3e083 commit bba7ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/non_user_endpoints/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def test_audio_features_with_bad_track(self):
bad_tracks = ['spotify:track:bad']
input = self.four_tracks + bad_tracks
results = self.spotify.audio_features(input)
self.assertTrue(len(results) == len(input))
for track in results[:-1]:
self.assertTrue(len(results['audio_features']) == len(input))
for track in results['audio_features'][:-1]:
if track is not None:
assert ('speechiness' in track)
self.assertTrue(results[-1] is None)
Expand Down

0 comments on commit bba7ef2

Please sign in to comment.