MCPcopy
hub / github.com/PyGithub/PyGithub / testMarkReadyForReview

Method testMarkReadyForReview

tests/PullRequest.py:547–557  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

545 }
546
547 def testMarkReadyForReview(self):
548 draft_pr = self.g.get_repo("didot/PyGithub", lazy=True).get_pull(2)
549 self.assertTrue(draft_pr.draft)
550 response = draft_pr.mark_ready_for_review()
551 self.assertFalse(draft_pr.draft)
552 assert response == {
553 "clientMutationId": None,
554 "pullRequest": {
555 "isDraft": False,
556 },
557 }
558
559 def testDeleteOnMerge(self):
560 self.assertTrue(self.delete_restore_repo.get_branch(self.delete_restore_pull.head.ref))

Callers

nothing calls this directly

Calls 3

get_pullMethod · 0.80
mark_ready_for_reviewMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected