test: add testfile for music search continuation
This commit is contained in:
parent
084f9ebdd4
commit
abfd630a04
4 changed files with 10846 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ pub async fn download_testfiles(project_root: &Path) {
|
|||
music_search_albums(&testfiles).await;
|
||||
music_search_artists(&testfiles).await;
|
||||
music_search_playlists(&testfiles).await;
|
||||
music_search_cont(&testfiles).await;
|
||||
}
|
||||
|
||||
const CLIENT_TYPES: [ClientType; 5] = [
|
||||
|
|
@ -598,3 +599,22 @@ async fn music_search_playlists(testfiles: &Path) {
|
|||
.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
async fn music_search_cont(testfiles: &Path) {
|
||||
let mut json_path = testfiles.to_path_buf();
|
||||
json_path.push("music_search");
|
||||
json_path.push("tracks_cont.json");
|
||||
if json_path.exists() {
|
||||
return;
|
||||
}
|
||||
|
||||
let rp = RustyPipe::new();
|
||||
let res = rp
|
||||
.query()
|
||||
.music_search_tracks("black mamba", false)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let rp = rp_testfile(&json_path);
|
||||
res.items.next(&rp.query()).await.unwrap().unwrap();
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue