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

Method testIncompletableObject

tests/Exceptions.py:166–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164 self.assertEqual(raised.exception.headers.get("retry-after"), "60")
165
166 def testIncompletableObject(self):
167 github.UserKey.UserKey.setCheckAfterInitFlag(False)
168 obj = github.UserKey.UserKey(mock.MagicMock(), {}, {}, False)
169 self.assertRaises(github.IncompletableObject, obj._completeIfNeeded)

Callers

nothing calls this directly

Calls 1

setCheckAfterInitFlagMethod · 0.80

Tested by

no test coverage detected