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

Method testGetDiscussionsByAnswered

tests/Repository.py:1792–1797  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1790 self.assertEqual(discussion.title, "Is the PyGithub project dead? How can the community help?")
1791
1792 def testGetDiscussionsByAnswered(self):
1793 repo = self.g.get_repo("PyGithub/PyGithub")
1794 discussions = repo.get_discussions("number title", answered=True)
1795 self.assertListEqual(
1796 [d.number for d in discussions], [2993, 2619, 2104, 2500, 2292, 2153, 2277, 2023, 1964, 1778]
1797 )
1798
1799 def testGetDiscussionsByCategory(self):
1800 repo = self.g.get_repo("PyGithub/PyGithub")

Callers

nothing calls this directly

Calls 2

get_repoMethod · 0.45
get_discussionsMethod · 0.45

Tested by

no test coverage detected