fix: download_testfiles

This commit is contained in:
ThetaDev 2022-10-17 23:45:49 +02:00
parent ae91c46fb2
commit 55861739dc
2 changed files with 8 additions and 9 deletions

View file

@ -194,9 +194,11 @@ async fn comments_top(testfiles: &Path) {
let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap(); let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap();
let rp = rp_testfile(&json_path); let rp = rp_testfile(&json_path);
rp.query() details
.video_comments(&details.top_comments.ctoken.unwrap()) .top_comments
.next(rp.query())
.await .await
.unwrap()
.unwrap(); .unwrap();
} }
@ -212,9 +214,11 @@ async fn comments_latest(testfiles: &Path) {
let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap(); let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap();
let rp = rp_testfile(&json_path); let rp = rp_testfile(&json_path);
rp.query() details
.video_comments(&details.latest_comments.ctoken.unwrap()) .latest_comments
.next(rp.query())
.await .await
.unwrap()
.unwrap(); .unwrap();
} }

View file

@ -1108,8 +1108,3 @@ trait MapResponse<T> {
deobf: Option<&Deobfuscator>, deobf: Option<&Deobfuscator>,
) -> Result<MapResult<T>, ExtractionError>; ) -> Result<MapResult<T>, ExtractionError>;
} }
#[cfg(test)]
mod tests {
// use super::*;
}