mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-01-24 09:47:26 -08:00
Consolidate SG2 tests
This commit is contained in:
parent
b897047b5c
commit
0fcf46ac47
4 changed files with 11 additions and 36 deletions
|
@ -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);
|
||||
|
|
|
@ -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(())
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue