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

Method testIsSecondaryRateLimitError

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

Source from the content-addressed store, hash-verified

413 self.assertFalse(github.Requester.Requester.isPrimaryRateLimitError(message), message)
414
415 def testIsSecondaryRateLimitError(self):
416 for message in self.SecondaryRateLimitErrors:
417 self.assertTrue(github.Requester.Requester.isSecondaryRateLimitError(message), message)
418 for message in self.OtherErrors + self.PrimaryRateLimitErrors:
419 self.assertFalse(github.Requester.Requester.isSecondaryRateLimitError(message), message)
420
421 def assertException(self, exception, exception_type, message, status, data, headers, string):
422 self.assertIsInstance(exception, exception_type)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected