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

Method testLazyAttributes

tests/CheckSuite.py:76–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 )
75
76 def testLazyAttributes(self):
77 suite = self.g.withLazy(True).get_repo("lazy/repo").get_check_suite(42)
78 self.assertEqual(str(suite), 'CheckSuite(url="/repos/lazy/repo/check-suites/42", id=42)')
79 self.assertEqual(suite.id, 42)
80 self.assertEqual(suite.url, "/repos/lazy/repo/check-suites/42")
81
82 def testGetCheckSuitesForRef(self):
83 check_suites = self.commit.get_check_suites()

Callers

nothing calls this directly

Calls 3

get_check_suiteMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected