fix(tests): dont ignore 404 error on rss feed

This commit is contained in:
ThetaDev 2024-01-29 18:51:08 +01:00
parent 7237aa2a75
commit f94bed5ddb

View file

@ -1175,24 +1175,14 @@ 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 {
Ok(channel) => {
assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg"); assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg");
assert_eq!(channel.name, "Cheryl Calogero"); 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]
fn get_channel_rss_not_found(rp: RustyPipe) { fn get_channel_rss_not_found(rp: RustyPipe) {