Skip to content

Commit

Permalink
GHA integration tests (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebruckert committed Nov 1, 2022
1 parent e9fd81c commit 1265d7b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Integration tests workflow
* Integration tests via GHA (non-user endpoints)

## [2.21.0] - 2022-09-26

Expand Down
Empty file.
Expand Up @@ -224,12 +224,13 @@ def test_artist_albums(self):
self.assertTrue('items' in results)
self.assertTrue(len(results['items']) > 0)

found = False
for album in results['items']:
if album['name'] == 'Hurley':
found = True
def find_album():
for album in results['items']:
if album['name'] == 'Death to False Metal':
return True
return False

self.assertTrue(found)
self.assertTrue(find_album())

def test_search_timeout(self):
client_credentials_manager = SpotifyClientCredentials()
Expand All @@ -240,6 +241,7 @@ def test_search_timeout(self):
self.assertRaises((requests.exceptions.Timeout, requests.exceptions.ConnectionError),
lambda: sp.search(q='my*', type='track'))

@unittest.skip("flaky test, need a better method to test retries")
def test_max_retries_reached_get(self):
spotify_no_retry = Spotify(
client_credentials_manager=SpotifyClientCredentials(),
Expand Down
Empty file.
File renamed without changes.

0 comments on commit 1265d7b

Please sign in to comment.