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

Method testGetComments

tests/PullRequest.py:291–294  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 self.assertEqual(comment.id, 886298)
290
291 def testGetComments(self):
292 epoch = datetime(1970, 1, 1, 0, 0)
293 comments = self.pull.get_comments(sort="updated", direction="desc", since=epoch)
294 self.assertListKeyEqual(comments, lambda c: c.id, [197784357, 1580134])
295
296 def testCreateIssueComment(self):
297 comment = self.pull.create_issue_comment("Issue comment created by PyGithub")

Callers

nothing calls this directly

Calls 2

assertListKeyEqualMethod · 0.80
get_commentsMethod · 0.45

Tested by

no test coverage detected