forked from mirror/Riven
1
0
Fork 0
Riven/riven/tests
Mingwei Samuel 8d2bcfe694 Regen for match-v5.MatchInfoDto docs casing fix, update tests
- https://github.com/RiotGames/developer-relations/issues/540
- https://github.com/MingweiSamuel/riotapi-schema/issues/28
2021-09-27 19:38:20 -07:00
..
README.md Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
async_tests.rs Regen for match-v5.MatchInfoDto docs casing fix, update tests 2021-09-27 19:38:20 -07:00
tests_americas.rs Regen for match-v5.MatchInfoDto docs casing fix, update tests 2021-09-27 19:38:20 -07:00
tests_euw.rs Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
tests_jp.rs Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
tests_kr.rs.ignored Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
tests_na.rs Regen for match-v4 removal 2021-09-27 19:04:35 -07:00
tests_tr.rs Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
tests_val_latam.rs Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
testutils.rs Add RiotApi::new(impl Into<RiotApiConfig>), deprecate old constructors, update docs 2021-09-19 11:22:59 -07:00

README.md

Tests are divided up by region. This is because tests cannot share state, and therefore cannot share the rate limiting done within a RiotApi instance. However, rate limiting is separate for each region, so it is safe to send requests to different regions from different instances.

The tests within an individual file do share their RiotApi instance thanks to custom test runners and some macros I hacked together which are located in async_tests.rs. They are set up in a way to look like normal test output for fun and probably to confuse people.