forked from mirror/Riven
1
0
Fork 0
Riven/tests
Mingwei Samuel 914ce35259 Change region to be an enum 2019-11-04 17:00:59 -08:00
..
README.md adding tests, fixing divsiion serialization 2019-10-30 13:24:14 -07:00
async_tests.rs readme example 2019-11-03 14:36:30 -08:00
readme.rs.ignored update readme 2019-11-03 12:04:25 -08:00
tests_euw.rs Updating bucket rate limiting system, adding bulk tests 2019-11-02 20:55:07 -07:00
tests_jp.rs update tests 2019-10-30 22:52:00 -07:00
tests_kr.rs.ignored readme example 2019-11-03 14:36:30 -08:00
tests_na.rs move dtos to 'models' module 2019-11-03 10:48:45 -08:00
tests_tr.rs Change region to be an enum 2019-11-04 17:00:59 -08:00
testutils.rs Updating bucket rate limiting system, adding bulk tests 2019-11-02 20:55:07 -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.