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

Method testGetDiscussion

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

Source from the content-addressed store, hash-verified

1783 self.assertEqual(discussion.title, "Is there a way to search if a string present in default branch?")
1784
1785 def testGetDiscussion(self):
1786 repo = self.g.get_repo("PyGithub/PyGithub")
1787 discussion = repo.get_discussion(2205, "author { login } number title")
1788 self.assertEqual(discussion.author.login, "EnricoMi")
1789 self.assertEqual(discussion.number, 2205)
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")

Callers

nothing calls this directly

Calls 2

get_discussionMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected