(self)
| 197 | test_increment(retry, response(), expect_retry_error=True) |
| 198 | |
| 199 | def test_primary_rate_error_without_reset(self): |
| 200 | retry = github.GithubRetry(total=3) |
| 201 | response = self.response_func(PrimaryRateLimitJson, reset=None) |
| 202 | test_increment = self.get_test_increment_func(PrimaryRateLimitMessage) |
| 203 | |
| 204 | # test without reset |
| 205 | retry = test_increment(retry, response(), expected_total=2, expected_backoff=0) |
| 206 | retry = test_increment(retry, response(), expected_total=1, expected_backoff=0) |
| 207 | retry = test_increment(retry, response(), expected_total=0, expected_backoff=0) |
| 208 | test_increment(retry, response(), expect_retry_error=True) |
| 209 | |
| 210 | def test_primary_rate_error_without_reset_with_exponential_backoff(self): |
| 211 | retry = github.GithubRetry(total=3, backoff_factor=10) |
nothing calls this directly
no test coverage detected