diff --git a/riven/tests/tests_na.rs b/riven/tests/tests_na.rs index e679fb4..41e14fa 100644 --- a/riven/tests/tests_na.rs +++ b/riven/tests/tests_na.rs @@ -166,7 +166,7 @@ async_tests!{ }, status: async { - let p = RIOT_API.lol_status_v4().get_platform_data(PlatformRoute::NA1); + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); let status = p.await.map_err(|e| e.to_string())?; println!("{:?}", status); Ok(()) diff --git a/riven/tests/tests_ph2.rs b/riven/tests/tests_ph2.rs new file mode 100644 index 0000000..8b0981f --- /dev/null +++ b/riven/tests/tests_ph2.rs @@ -0,0 +1,23 @@ +#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))] +#![cfg_attr(feature = "nightly", test_runner(my_runner))] + +mod async_tests; +mod testutils; +use testutils::*; + +use colored::*; + +use riven::consts::*; + +const ROUTE: PlatformRoute = PlatformRoute::PH2; + +async_tests!{ + my_runner { + status: async { + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); + let status = p.await.map_err(|e| e.to_string())?; + println!("{:?}", status); + Ok(()) + }, + } +} diff --git a/riven/tests/tests_sg2.rs b/riven/tests/tests_sg2.rs new file mode 100644 index 0000000..1aa3e9b --- /dev/null +++ b/riven/tests/tests_sg2.rs @@ -0,0 +1,23 @@ +#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))] +#![cfg_attr(feature = "nightly", test_runner(my_runner))] + +mod async_tests; +mod testutils; +use testutils::*; + +use colored::*; + +use riven::consts::*; + +const ROUTE: PlatformRoute = PlatformRoute::SG2; + +async_tests!{ + my_runner { + status: async { + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); + let status = p.await.map_err(|e| e.to_string())?; + println!("{:?}", status); + Ok(()) + }, + } +} diff --git a/riven/tests/tests_th2.rs b/riven/tests/tests_th2.rs new file mode 100644 index 0000000..0837758 --- /dev/null +++ b/riven/tests/tests_th2.rs @@ -0,0 +1,23 @@ +#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))] +#![cfg_attr(feature = "nightly", test_runner(my_runner))] + +mod async_tests; +mod testutils; +use testutils::*; + +use colored::*; + +use riven::consts::*; + +const ROUTE: PlatformRoute = PlatformRoute::TH2; + +async_tests!{ + my_runner { + status: async { + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); + let status = p.await.map_err(|e| e.to_string())?; + println!("{:?}", status); + Ok(()) + }, + } +} diff --git a/riven/tests/tests_tw2.rs.ignored b/riven/tests/tests_tw2.rs.ignored new file mode 100644 index 0000000..f46fca4 --- /dev/null +++ b/riven/tests/tests_tw2.rs.ignored @@ -0,0 +1,25 @@ +#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))] +#![cfg_attr(feature = "nightly", test_runner(my_runner))] + +mod async_tests; +mod testutils; +use testutils::*; + +use colored::*; + +use riven::consts::*; + +const ROUTE: PlatformRoute = PlatformRoute::TW2; + +async_tests!{ + my_runner { + // TODO: for some reason status is not available on TW2... + // https://developer.riotgames.com/apis#lol-status-v4/GET_getPlatformData + status: async { + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); + let status = p.await.map_err(|e| e.to_string())?; + println!("{:?}", status); + Ok(()) + }, + } +} diff --git a/riven/tests/tests_vn2.rs b/riven/tests/tests_vn2.rs new file mode 100644 index 0000000..623b4f3 --- /dev/null +++ b/riven/tests/tests_vn2.rs @@ -0,0 +1,23 @@ +#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))] +#![cfg_attr(feature = "nightly", test_runner(my_runner))] + +mod async_tests; +mod testutils; +use testutils::*; + +use colored::*; + +use riven::consts::*; + +const ROUTE: PlatformRoute = PlatformRoute::VN2; + +async_tests!{ + my_runner { + status: async { + let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE); + let status = p.await.map_err(|e| e.to_string())?; + println!("{:?}", status); + Ok(()) + }, + } +}