fix: handle channel_rss not found
This commit is contained in:
parent
d4d029c3ce
commit
de118c59c4
3 changed files with 30 additions and 2 deletions
|
|
@ -921,6 +921,21 @@ async fn get_channel_rss() {
|
|||
assert!(!channel.videos.is_empty());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn get_channel_rss_not_found() {
|
||||
let rp = RustyPipe::builder().strict().build();
|
||||
let err = rp
|
||||
.query()
|
||||
.channel_rss("UCHnyfMqiRRG1u-2MsSQLbXZ")
|
||||
.await
|
||||
.unwrap_err();
|
||||
|
||||
assert!(matches!(
|
||||
err,
|
||||
Error::Extraction(ExtractionError::ContentUnavailable(_))
|
||||
));
|
||||
}
|
||||
|
||||
//#SEARCH
|
||||
|
||||
#[tokio::test]
|
||||
|
|
|
|||
Reference in a new issue