MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / test_primary_rate_error_without_reset

Method test_primary_rate_error_without_reset

tests/GithubRetry.py:199–208  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

response_funcMethod · 0.95

Tested by

no test coverage detected