From 0fcf46ac4708d1647e6839c6546e35fc6079bb07 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Tue, 7 Jan 2025 11:03:14 -0800 Subject: [PATCH] Consolidate SG2 tests --- riven/tests/tests_na.rs | 1 + riven/tests/tests_ph2.rs | 13 ------------- riven/tests/tests_sg2.rs | 10 ++++++++++ riven/tests/tests_th2.rs | 23 ----------------------- 4 files changed, 11 insertions(+), 36 deletions(-) delete mode 100644 riven/tests/tests_ph2.rs delete mode 100644 riven/tests/tests_th2.rs diff --git a/riven/tests/tests_na.rs b/riven/tests/tests_na.rs index 233d779..1a0aa85 100644 --- a/riven/tests/tests_na.rs +++ b/riven/tests/tests_na.rs @@ -102,6 +102,7 @@ async fn clash_get_team_by_id_invalid() -> Result<(), String> { Ok(()) } +// STATUS #[riven_test] async fn status() -> Result<(), String> { let p = riot_api().lol_status_v4().get_platform_data(ROUTE); diff --git a/riven/tests/tests_ph2.rs b/riven/tests/tests_ph2.rs deleted file mode 100644 index 639e962..0000000 --- a/riven/tests/tests_ph2.rs +++ /dev/null @@ -1,13 +0,0 @@ -mod testutils; -use riven::consts::*; -use testutils::*; - -const ROUTE: PlatformRoute = PlatformRoute::PH2; - -#[riven_test] -async fn status() -> Result<(), String> { - let p = riot_api().lol_status_v4().get_platform_data(ROUTE); - let status = p.await.map_err(|e| e.to_string())?; - let _ = status; - Ok(()) -} diff --git a/riven/tests/tests_sg2.rs b/riven/tests/tests_sg2.rs index 7342be4..bafc7c6 100644 --- a/riven/tests/tests_sg2.rs +++ b/riven/tests/tests_sg2.rs @@ -11,3 +11,13 @@ async fn status() -> Result<(), String> { let _ = status; Ok(()) } + +#[riven_test] +async fn spectator_v5_combo_test() -> Result<(), String> { + spectator_v5_combo(ROUTE).await +} + +#[riven_test] +async fn spectator_tft_v5_combo_test() -> Result<(), String> { + spectator_tft_v5_combo(ROUTE).await +} diff --git a/riven/tests/tests_th2.rs b/riven/tests/tests_th2.rs deleted file mode 100644 index 71080ba..0000000 --- a/riven/tests/tests_th2.rs +++ /dev/null @@ -1,23 +0,0 @@ -mod testutils; -use riven::consts::*; -use testutils::*; - -const ROUTE: PlatformRoute = PlatformRoute::TH2; - -#[riven_test] -async fn status() -> Result<(), String> { - let p = riot_api().lol_status_v4().get_platform_data(ROUTE); - let status = p.await.map_err(|e| e.to_string())?; - let _ = status; - Ok(()) -} - -#[riven_test] -async fn spectator_v5_combo_test() -> Result<(), String> { - spectator_v5_combo(ROUTE).await -} - -#[riven_test] -async fn spectator_tft_v5_combo_test() -> Result<(), String> { - spectator_tft_v5_combo(ROUTE).await -}