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,20 +980,20 @@ fn channel_more(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let channel_videos = tokio_test::block_on(rp.query().channel_videos(&id)).unwrap();
|
|
||||||
assert_channel(&channel_videos, id, name, unlocalized || name_unlocalized);
|
|
||||||
if has_videos {
|
if has_videos {
|
||||||
|
let channel_videos = tokio_test::block_on(rp.query().channel_videos(&id)).unwrap();
|
||||||
|
assert_channel(&channel_videos, id, name, unlocalized || name_unlocalized);
|
||||||
assert!(!channel_videos.content.items.is_empty(), "got no videos");
|
assert!(!channel_videos.content.items.is_empty(), "got no videos");
|
||||||
}
|
}
|
||||||
|
|
||||||
let channel_playlists = tokio_test::block_on(rp.query().channel_playlists(&id)).unwrap();
|
|
||||||
assert_channel(
|
|
||||||
&channel_playlists,
|
|
||||||
id,
|
|
||||||
name,
|
|
||||||
unlocalized || name_unlocalized,
|
|
||||||
);
|
|
||||||
if has_playlists {
|
if has_playlists {
|
||||||
|
let channel_playlists = tokio_test::block_on(rp.query().channel_playlists(&id)).unwrap();
|
||||||
|
assert_channel(
|
||||||
|
&channel_playlists,
|
||||||
|
id,
|
||||||
|
name,
|
||||||
|
unlocalized || name_unlocalized,
|
||||||
|
);
|
||||||
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