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

Method setUp

tests/PullRequestReview.py:54–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52
53class PullRequestReview(Framework.TestCase):
54 def setUp(self):
55 super().setUp()
56
57 self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True)
58 self.pull = self.repo.get_pull(538)
59
60 # Test ability to create a review
61 self.created_pullreview = self.pull.create_review(
62 self.repo.get_commit("2f0e4e55fe87e38d26efc9aa1346f56abfbd6c52"),
63 "Some review created by PyGithub",
64 )
65
66 # Test ability to get all reviews
67 self.pullreviews = self.pull.get_reviews()
68
69 # Test ability to get a single review
70 self.pullreview = self.pull.get_review(28482091)
71
72 def testDoesNotModifyPullRequest(self):
73 self.assertEqual(self.pull.id, 111649703)

Callers

nothing calls this directly

Calls 6

get_pullMethod · 0.80
create_reviewMethod · 0.80
get_commitMethod · 0.80
get_reviewsMethod · 0.80
get_reviewMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected