From a675e6a9bd09c0704c1980f60e5f744b425cbdc2 Mon Sep 17 00:00:00 2001 From: dieser-niko Date: Sun, 13 Oct 2024 22:08:25 +0200 Subject: [PATCH] fix test --- tests/integration/non_user_endpoints/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/non_user_endpoints/test.py b/tests/integration/non_user_endpoints/test.py index ad8b2196..0720e32b 100644 --- a/tests/integration/non_user_endpoints/test.py +++ b/tests/integration/non_user_endpoints/test.py @@ -88,8 +88,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['audio_features']) == len(input)) - for track in results['audio_features'][:-1]: + self.assertTrue(len(results) == len(input)) + for track in results[:-1]: if track is not None: assert ('speechiness' in track) self.assertTrue(results[-1] is None)