Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock call to fetch_playlist_recording_metadata when getting playlists #1231

Merged
merged 1 commit into from Jan 12, 2021

Conversation

alastair
Copy link
Collaborator

Problem

Due to configuration issues, we currently can't connect to external hosts from tests in jenkins (LB-782).
The playlist get method makes a call to labs.api.listenbrainz.org to get metadata for the playlist given its mbids.
Because this is a unit test, we don't really want the result of this lookup to be determined by an external service anyway, so we should disable it when running tests.

Solution

mock the external api calls

@alastair alastair requested a review from mayhem January 12, 2021 12:43
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, makes sense.

@alastair
Copy link
Collaborator Author

The only remaining failing integration tests are due to sporadic issues that we're still trying to track down.
JS tests fixed by #1228

@alastair alastair merged commit 84137cd into master Jan 12, 2021
@alastair alastair deleted the mock-playlist-metadata-lookup branch January 12, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants