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

Method testLazyAttributes

tests/PullRequest.py:221–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 self.assertTrue(self.pullIssue256Conflict.rebaseable)
220
221 def testLazyAttributes(self):
222 pull = self.g.withLazy(True).get_repo("lazy/repo").get_pull(42)
223 self.assertEqual(str(pull), "PullRequest(title=None, number=42)")
224 self.assertEqual(pull.number, 42)
225 self.assertEqual(pull.url, "/repos/lazy/repo/pulls/42")
226
227 def testCreateComment(self):
228 commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206")

Callers

nothing calls this directly

Calls 3

get_pullMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected