Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebruckert committed Oct 26, 2022
1 parent be27391 commit 06765c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_non_user_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ def setUpClass(self):

def test_audio_analysis(self):
result = self.spotify.audio_analysis(self.four_tracks[0])
assert('beats' in result)
assert ('beats' in result)

def test_audio_features(self):
results = self.spotify.audio_features(self.four_tracks)
self.assertTrue(len(results) == len(self.four_tracks))
for track in results:
assert('speechiness' in track)
assert ('speechiness' in track)

def test_audio_features_with_bad_track(self):
bad_tracks = ['spotify:track:bad']
Expand All @@ -78,7 +78,7 @@ def test_audio_features_with_bad_track(self):
self.assertTrue(len(results) == len(input))
for track in results[:-1]:
if track is not None:
assert('speechiness' in track)
assert ('speechiness' in track)
self.assertTrue(results[-1] is None)

def test_recommendations(self):
Expand Down

0 comments on commit 06765c4

Please sign in to comment.