Skip to content

fix(spotify): update stale test to match current API signatures - #38

Open
narayandesai wants to merge 1 commit into
SilentVoid13:masterfrom
narayandesai:spotify-test-fix
Open

narayandesai wants to merge 1 commit into
SilentVoid13:masterfrom
narayandesai:spotify-test-fix

Conversation

@narayandesai

Copy link
Copy Markdown

Summary

  • spotify::tests::test_spotify_search_from_ytmusic called YtMusicApi::new_oauth and SpotifyApi::new with an outdated argument list, causing a compile error in the test target and blocking cargo test for the entire crate.
  • Updated both calls to match the current signatures (added the missing ConfigArgs/PathBuf/redirect_uri/clear_cache arguments) and marked the test #[ignore] since it requires live YTMUSIC_*/SPOTIFY_* credentials and a real TestSpotify playlist to run.

Test plan

  • cargo test compiles and runs cleanly (test is ignored by default, as before it would have needed live credentials to even get that far)

Pre-existing test called YtMusicApi::new_oauth/SpotifyApi::new with an
outdated argument list, which failed to compile and blocked cargo test
for the entire crate. Fixed signatures and marked #[ignore] since it
requires live credentials and a real playlist to run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant