test: fix channel_tab_not_found test
This commit is contained in:
parent
6674c058c2
commit
95ddb4f27e
1 changed files with 9 additions and 3 deletions
|
|
@ -1169,10 +1169,16 @@ async fn channel_tab_not_found(#[case] tab: ChannelVideoTab, rp: RustyPipe) {
|
||||||
let channel = rp
|
let channel = rp
|
||||||
.query()
|
.query()
|
||||||
.channel_videos_tab("UCGiJh0NZ52wRhYKYnuZI08Q", tab)
|
.channel_videos_tab("UCGiJh0NZ52wRhYKYnuZI08Q", tab)
|
||||||
.await
|
.await;
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
assert!(channel.content.is_empty(), "got: {:?}", channel.content);
|
// YouTube removed empty tabs from the menu, so they may return no data
|
||||||
|
match channel {
|
||||||
|
Ok(channel) => assert!(channel.content.is_empty(), "got: {:?}", channel.content),
|
||||||
|
Err(err) => assert!(
|
||||||
|
matches!(err, Error::Extraction(ExtractionError::NotFound { .. })),
|
||||||
|
"got: {err}"
|
||||||
|
),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
|
|
|
||||||
Reference in a new issue