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

Method testLazyAttributes

tests/GitRef.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 )
66
67 def testLazyAttributes(self):
68 ref = self.g.withLazy(True).get_repo("lazy/repo").get_git_ref("refs/heads/main")
69 self.assertEqual(str(ref), 'GitRef(ref="refs/heads/main")')
70 self.assertEqual(ref.ref, "refs/heads/main")
71 self.assertEqual(ref.url, "/repos/lazy/repo/git/ref/refs/heads/main")
72
73 def testEdit(self):
74 self.ref.edit("04cde900a0775b51f762735637bd30de392a2793")

Callers

nothing calls this directly

Calls 3

get_git_refMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected