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

Method testShouldCreateRateLimitExceededException

tests/Requester.py:485–497  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 )
484
485 def testShouldCreateRateLimitExceededException(self):
486 for message in self.PrimaryRateLimitErrors + self.SecondaryRateLimitErrors:
487 with self.subTest(message=message):
488 exc = self.g._Github__requester.createException(403, {"header": "value"}, {"message": message})
489 self.assertException(
490 exc,
491 github.RateLimitExceededException,
492 None,
493 403,
494 {"message": message},
495 {"header": "value"},
496 f'403 {{"message": "{message}"}}',
497 )
498
499 def testShouldCreateUnknownObjectException(self):
500 exc = self.g._Github__requester.createException(404, {"header": "value"}, {"message": "Not Found"})

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected