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

Method testShouldCreateGithubException

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

Source from the content-addressed store, hash-verified

535 )
536
537 def testShouldCreateGithubException(self):
538 for status in range(400, 600):
539 with self.subTest(status=status):
540 exc = self.g._Github__requester.createException(
541 status, {"header": "value"}, {"message": "Something unknown"}
542 )
543 self.assertException(
544 exc,
545 github.GithubException,
546 "Something unknown",
547 status,
548 {"message": "Something unknown"},
549 {"header": "value"},
550 f'Something unknown: {status} {{"message": "Something unknown"}}',
551 )
552
553 def testShouldCreateExceptionWithoutMessage(self):
554 for status in range(400, 600):

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected