mirror of https://github.com/MingweiSamuel/Riven
adding lor_ranked_v1 get_leaderboards test
parent
0e200a80fb
commit
85f156cab8
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 cargo test --features nightly
|
|
@ -73,5 +73,11 @@ async_tests!{
|
||||||
rassert!(!m.participants.is_empty(), "Match should have participants.");
|
rassert!(!m.participants.is_empty(), "Match should have participants.");
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
// LOR
|
||||||
|
lor_ranked_get_leaderboards: async {
|
||||||
|
let future = RIOT_API.lor_ranked_v1().get_leaderboards(Region::AMERICAS);
|
||||||
|
let _leaderboard = future.await.map_err(|e| e.to_string())?;
|
||||||
|
Ok(())
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue