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

Method testGetComments

tests/RepositoryDiscussion.py:182–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 self.assertEqual(self.discussion.get_reactions().totalCount, 0)
181
182 def testGetComments(self):
183 discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", "id")
184 comments_pages = discussion.get_comments("id")
185 comments = list(comments_pages)
186 self.assertEqual(comments_pages.totalCount, 2)
187 self.assertEqual(len(comments), 2)
188 self.assertListEqual([c.id for c in comments], ["DC_kwDOADYVqs4AnxkU", "DC_kwDOADYVqs4AoA2V"])
189
190 def testGetCommentsWithoutNodeId(self):
191 discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", "title")

Callers

nothing calls this directly

Calls 2

get_commentsMethod · 0.45

Tested by

no test coverage detected