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

Method testGetDiscussionsByCategory

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

Source from the content-addressed store, hash-verified

1797 )
1798
1799 def testGetDiscussionsByCategory(self):
1800 repo = self.g.get_repo("PyGithub/PyGithub")
1801 discussions = repo.get_discussions("number title", category_id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyMDI5MDYy")
1802 self.assertListEqual([d.number for d in discussions], [3044, 2997, 2057, 2242, 2173, 1993, 1780])
1803
1804 def testGetDiscussionsByStates(self):
1805 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