feat: add search item mapping (WIP)
This commit is contained in:
parent
44da9c7cc5
commit
3ad8f9b178
15 changed files with 14502 additions and 115 deletions
|
|
@ -39,6 +39,7 @@ pub async fn download_testfiles(project_root: &Path) {
|
|||
music_playlist(&testfiles).await;
|
||||
music_playlist_cont(&testfiles).await;
|
||||
music_album(&testfiles).await;
|
||||
music_search(&testfiles).await;
|
||||
}
|
||||
|
||||
const CLIENT_TYPES: [ClientType; 5] = [
|
||||
|
|
@ -517,3 +518,17 @@ async fn music_album(testfiles: &Path) {
|
|||
rp.query().music_album(id).await.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
async fn music_search(testfiles: &Path) {
|
||||
for (name, query) in [("default", "black mamba"), ("typo", "liblingsmensch")] {
|
||||
let mut json_path = testfiles.to_path_buf();
|
||||
json_path.push("music_search");
|
||||
json_path.push(format!("{}.json", name));
|
||||
if json_path.exists() {
|
||||
continue;
|
||||
}
|
||||
|
||||
let rp = rp_testfile(&json_path);
|
||||
rp.query().music_search(query).await.unwrap();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue