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

Method testLazyAttributes

tests/CheckRun.py:75–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 self.assertEqual(repr(self.check_run), 'CheckRun(id=34942661139, conclusion="success")')
74
75 def testLazyAttributes(self):
76 run = self.g.withLazy(True).get_repo("lazy/repo").get_check_run(42)
77 self.assertEqual(str(run), "CheckRun(id=42, conclusion=None)")
78 self.assertEqual(run.id, 42)
79 self.assertEqual(run.url, "/repos/lazy/repo/check-runs/42")
80
81 def testCheckRunOutputAttributes(self):
82 check_run_output = self.repo.get_check_run(1039891917).output

Callers

nothing calls this directly

Calls 3

get_check_runMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected