(self)
| 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") |
nothing calls this directly
no test coverage detected