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

Method testGetDiscussionsByStates

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

Source from the content-addressed store, hash-verified

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")
1806 discussions = repo.get_discussions("number title", states=["CLOSED"])
1807 self.assertListEqual([d.number for d in discussions], [2938, 2495, 2559, 2104, 2539, 2480])
1808
1809 def testCreateFile(self):
1810 newFile = "doc/testCreateUpdateDeleteFile.md"

Callers

nothing calls this directly

Calls 2

get_repoMethod · 0.45
get_discussionsMethod · 0.45

Tested by

no test coverage detected