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

Method testLazyAttributes

tests/GitRelease.py:197–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195 )
196
197 def testLazyAttributes(self):
198 id_release = self.g.withLazy(True).get_repo("lazy/repo").get_release(42)
199 self.assertEqual(str(id_release), "GitRelease(name=None)")
200 self.assertEqual(id_release.id, 42)
201 self.assertEqual(id_release.url, "/repos/lazy/repo/releases/42")
202
203 def testGetRelease(self):
204 release_by_id = self.release

Callers

nothing calls this directly

Calls 3

get_releaseMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected