Riven/tests
Mingwei Samuel 15faf83241 adding tests, fixing divsiion serialization
DTO changes are temp due to autogen
2019-10-30 13:24:14 -07:00
..
async_tests.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
ids.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
README.md adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
tests.rs.bak hacked-in async tests 2019-10-20 16:02:07 -07:00
tests_euw.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
tests_jp.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
tests_na.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
tests_tr.rs adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07: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.