tests: replace agegate video (was made private)
This commit is contained in:
parent
dbcea10d2e
commit
745ee01067
1 changed files with 10 additions and 16 deletions
|
|
@ -706,34 +706,28 @@ fn get_video_details_live(rp: RustyPipe) {
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
fn get_video_details_agegate(rp: RustyPipe) {
|
fn get_video_details_agegate(rp: RustyPipe) {
|
||||||
let details = tokio_test::block_on(rp.query().video_details("HRKu0cvrr_o")).unwrap();
|
let details = tokio_test::block_on(rp.query().video_details("laru0QoJUmI")).unwrap();
|
||||||
|
|
||||||
// dbg!(&details);
|
// dbg!(&details);
|
||||||
|
|
||||||
assert_eq!(details.id, "HRKu0cvrr_o");
|
assert_eq!(details.id, "laru0QoJUmI");
|
||||||
assert_eq!(
|
assert_eq!(details.name, "DJ Robin x Schürze - Layla (Official Video)");
|
||||||
details.name,
|
|
||||||
"AlphaOmegaSin Fanboy Logic: Likes/Dislikes Disabled = Point Invalid Lol wtf?"
|
|
||||||
);
|
|
||||||
insta::assert_ron_snapshot!(details.description, @"RichText([])");
|
insta::assert_ron_snapshot!(details.description, @"RichText([])");
|
||||||
|
|
||||||
assert_eq!(details.channel.id, "UCQT2yul0lr6Ie9qNQNmw-sg");
|
assert_eq!(details.channel.id, "UCkJfSrMnLonOZWh-q5os5bg");
|
||||||
assert_eq!(
|
assert_eq!(details.channel.name, "Summerfield Records");
|
||||||
details.channel.name,
|
|
||||||
"Dale Earnhardt Junior’s Retired YouYoube Channel"
|
|
||||||
);
|
|
||||||
assert!(!details.channel.avatar.is_empty(), "no channel avatars");
|
assert!(!details.channel.avatar.is_empty(), "no channel avatars");
|
||||||
assert_eq!(details.channel.verification, Verification::None);
|
assert_eq!(details.channel.verification, Verification::Verified);
|
||||||
assert_gte(
|
assert_gte(
|
||||||
details.channel.subscriber_count.unwrap(),
|
details.channel.subscriber_count.unwrap(),
|
||||||
1400,
|
250_000,
|
||||||
"subscribers",
|
"subscribers",
|
||||||
);
|
);
|
||||||
assert_gte(details.view_count, 200, "views");
|
assert_gte(details.view_count, 10_000_000, "views");
|
||||||
assert!(details.like_count.is_none(), "like count not hidden");
|
assert_gte(details.like_count.unwrap(), 150_000, "likes");
|
||||||
|
|
||||||
let date = details.publish_date.unwrap();
|
let date = details.publish_date.unwrap();
|
||||||
assert_eq!(date.date(), date!(2019 - 1 - 2));
|
assert_eq!(date.date(), date!(2022 - 5 - 13));
|
||||||
|
|
||||||
assert!(!details.is_live);
|
assert!(!details.is_live);
|
||||||
assert!(!details.is_ccommons);
|
assert!(!details.is_ccommons);
|
||||||
|
|
|
||||||
Reference in a new issue