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

Method testLazyAttributes

tests/PullRequestComment.py:104–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self.assertEqual(repr(self.comment), 'PullRequestComment(user=NamedUser(login="jacquev6"), id=1580134)')
103
104 def testLazyAttributes(self):
105 issue = self.g.withLazy(True).get_repo("lazy/repo").get_pull(42).get_comment(24)
106 self.assertEqual(str(issue), "PullRequestComment(user=None, id=24)")
107 self.assertEqual(issue.id, 24)
108 self.assertEqual(issue.url, "/repos/lazy/repo/pulls/comments/24")
109
110 def testEdit(self):
111 self.comment.edit("Comment edited by PyGithub")

Callers

nothing calls this directly

Calls 4

get_pullMethod · 0.80
get_commentMethod · 0.45
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected