fix(tests): dont fetch non-existant channel tabs
This commit is contained in:
parent
4eb5e422f9
commit
5eb4e91fa5
1 changed files with 9 additions and 9 deletions
|
|
@ -980,12 +980,13 @@ fn channel_more(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if has_videos {
|
||||||
let channel_videos = tokio_test::block_on(rp.query().channel_videos(&id)).unwrap();
|
let channel_videos = tokio_test::block_on(rp.query().channel_videos(&id)).unwrap();
|
||||||
assert_channel(&channel_videos, id, name, unlocalized || name_unlocalized);
|
assert_channel(&channel_videos, id, name, unlocalized || name_unlocalized);
|
||||||
if has_videos {
|
|
||||||
assert!(!channel_videos.content.items.is_empty(), "got no videos");
|
assert!(!channel_videos.content.items.is_empty(), "got no videos");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if has_playlists {
|
||||||
let channel_playlists = tokio_test::block_on(rp.query().channel_playlists(&id)).unwrap();
|
let channel_playlists = tokio_test::block_on(rp.query().channel_playlists(&id)).unwrap();
|
||||||
assert_channel(
|
assert_channel(
|
||||||
&channel_playlists,
|
&channel_playlists,
|
||||||
|
|
@ -993,7 +994,6 @@ fn channel_more(
|
||||||
name,
|
name,
|
||||||
unlocalized || name_unlocalized,
|
unlocalized || name_unlocalized,
|
||||||
);
|
);
|
||||||
if has_playlists {
|
|
||||||
assert!(
|
assert!(
|
||||||
!channel_playlists.content.items.is_empty(),
|
!channel_playlists.content.items.is_empty(),
|
||||||
"got no playlists"
|
"got no playlists"
|
||||||
|
|
|
||||||
Reference in a new issue