Riven/tests
Mingwei Samuel 14e6faa24e Restructure, add RiotApi.get_raw_response(...) method useful for proxies.
New RiotApi.get_raw_response(...) method similar to existing
RiotApi.get(...) and RiotApi.get_optional(...), but does not parse the
result. Useful for proxies which just want to forward the content body.

Also adds tests to JP of failure cases.
2020-06-04 22:41:26 -07:00
..
async_tests.rs Fix typo causing tests to always succeed. 2020-03-31 11:46:26 -07:00
README.md adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
tests_euw.rs Regen, fix issues with tft optional responses/fields 2020-05-02 12:55:37 -07:00
tests_jp.rs Restructure, add RiotApi.get_raw_response(...) method useful for proxies. 2020-06-04 22:41:26 -07:00
tests_kr.rs.ignored Update to work on stable 1.39 2019-11-07 12:45:13 -08:00
tests_na.rs Add match-v4 timeline test, regen to fix missing optionals 2020-05-30 13:36:15 -07:00
tests_tr.rs Upgrade to reqwest 0.10, tokio 0.2, release 0.2.0 2019-12-30 21:36:23 -08:00
testutils.rs Upgrade to reqwest 0.10, tokio 0.2, release 0.2.0 2019-12-30 21:36:23 -08:00

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.