test: fix authenticated testing in CI
This commit is contained in:
parent
1b08166399
commit
7984f9f13a
3 changed files with 20 additions and 11 deletions
|
|
@ -234,7 +234,7 @@ async fn check_video_stream(s: impl YtStream) {
|
|||
)]
|
||||
#[tokio::test]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn get_player(
|
||||
async fn get_player_videos(
|
||||
#[case] id: &str,
|
||||
#[case] name: &str,
|
||||
#[case] description: &str,
|
||||
|
|
@ -247,7 +247,7 @@ async fn get_player(
|
|||
rp: RustyPipe,
|
||||
) {
|
||||
if id == "ZDKQmBWTRnw" && !rp.query().auth_enabled() {
|
||||
tracing::warn!("unauthenticated; age-limited video cannot be tested");
|
||||
eprintln!("unauthenticated; age-limited video cannot be tested");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -2675,6 +2675,14 @@ async fn isrc_search_languages(rp: RustyPipe) {
|
|||
}
|
||||
}
|
||||
|
||||
#[rstest]
|
||||
#[tokio::test]
|
||||
async fn user_auth_check_login(rp: RustyPipe) {
|
||||
if rp.query().auth_enabled() {
|
||||
rp.user_auth_check_login().await.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
//#TESTUTIL
|
||||
|
||||
/// Get the language setting from the environment variable
|
||||
|
|
|
|||
Reference in a new issue