fix(tests): dont ignore 404 error on rss feed
This commit is contained in:
parent
7237aa2a75
commit
f94bed5ddb
1 changed files with 5 additions and 15 deletions
|
|
@ -1175,23 +1175,13 @@ mod channel_rss {
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
fn get_channel_rss_empty(rp: RustyPipe) {
|
fn get_channel_rss_empty(rp: RustyPipe) {
|
||||||
let channel = tokio_test::block_on(rp.query().channel_rss("UCAyFbMjB3qAQSZBj6NCuBSg"));
|
let channel =
|
||||||
|
tokio_test::block_on(rp.query().channel_rss("UCAyFbMjB3qAQSZBj6NCuBSg")).unwrap();
|
||||||
|
|
||||||
match channel {
|
assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg");
|
||||||
Ok(channel) => {
|
assert_eq!(channel.name, "Cheryl Calogero");
|
||||||
assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg");
|
|
||||||
assert_eq!(channel.name, "Cheryl Calogero");
|
|
||||||
|
|
||||||
assert!(channel.videos.is_empty());
|
assert!(channel.videos.is_empty());
|
||||||
}
|
|
||||||
Err(err) => {
|
|
||||||
assert!(
|
|
||||||
matches!(err, Error::Extraction(ExtractionError::NotFound { .. })),
|
|
||||||
"got: {}",
|
|
||||||
err
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
|
|
|
||||||
Reference in a new issue