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

Method testLazyAttributes

tests/CommitComment.py:84–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 self.assertEqual(repr(self.comment), 'CommitComment(user=NamedUser(login="jacquev6"), id=1362000)')
83
84 def testLazyAttributes(self):
85 comment = self.g.withLazy(True).get_repo("lazy/repo").get_comment(42)
86 self.assertEqual(str(comment), "CommitComment(user=None, id=42)")
87 self.assertEqual(comment.id, 42)
88 self.assertEqual(comment.url, "/repos/lazy/repo/comments/42")
89
90 def testEdit(self):
91 self.comment.edit("Comment edited by PyGithub")

Callers

nothing calls this directly

Calls 3

get_commentMethod · 0.45
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected