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

Method test_403_with_non_retryable_error

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

Source from the content-addressed store, hash-verified

366 self.do_test_default_behaviour(retry, response)
367
368 def test_403_with_non_retryable_error(self):
369 retry = github.GithubRetry(total=3)
370 with self.assertRaises(github.BadUserAgentException):
371 retry.increment(
372 "TEST",
373 "URL",
374 self.response_func('{"message":"Missing or invalid User Agent string."}')(),
375 )
376
377 def test_misc_response(self):
378 retry = github.GithubRetry(total=3)

Callers

nothing calls this directly

Calls 2

incrementMethod · 0.95
response_funcMethod · 0.95

Tested by

no test coverage detected