Assert statements with inline if/else blocks in the tests are misleading.
An assert statement like assert response.status_code == 200 if i < 5 else 429 will be evaluated to assert 429 for all i >=5, i.e. the test will be every time green for all requests after the 5th request.
I have already provided a PR to fix this: #240.