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

Method testShouldCreateExceptionWithoutOutput

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

Source from the content-addressed store, hash-verified

557 self.assertException(exc, github.GithubException, None, status, {}, {}, f"{status} {{}}")
558
559 def testShouldCreateExceptionWithoutOutput(self):
560 for status in range(400, 600):
561 with self.subTest(status=status):
562 exc = self.g._Github__requester.createException(status, {}, None)
563 self.assertException(exc, github.GithubException, None, status, None, {}, f"{status}")
564
565
566class RequesterThrottleTestCase(Framework.TestCase):

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected