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

Method testConvertToDraft

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

Source from the content-addressed store, hash-verified

533 self.assertTrue(self.pull.update_branch())
534
535 def testConvertToDraft(self):
536 ready_pr = self.g.get_repo("didot/PyGithub", lazy=True).get_pull(1)
537 self.assertFalse(ready_pr.draft)
538 response = ready_pr.convert_to_draft()
539 self.assertTrue(ready_pr.draft)
540 assert response == {
541 "clientMutationId": None,
542 "pullRequest": {
543 "isDraft": True,
544 },
545 }
546
547 def testMarkReadyForReview(self):
548 draft_pr = self.g.get_repo("didot/PyGithub", lazy=True).get_pull(2)

Callers

nothing calls this directly

Calls 3

get_pullMethod · 0.80
convert_to_draftMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected