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

Method testEnableAutomerge

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

Source from the content-addressed store, hash-verified

619 )
620
621 def testEnableAutomerge(self):
622 # To reproduce this, the PR repository need to have the "Allow auto-merge" option enabled
623 response = self.pull.enable_automerge(
624 merge_method="SQUASH",
625 author_email="foo@example.com",
626 client_mutation_id="1234",
627 commit_body="body of the commit",
628 commit_headline="The commit headline",
629 expected_head_oid="0283d46537193f1fed7d46859f15c5304b9836f9",
630 )
631 assert response == {
632 "actor": {
633 "avatarUrl": "https://avatars.githubusercontent.com/u/14806300?u=786f9f8ef8782d45381b01580f7f7783cf9c7e37&v=4",
634 "login": "heitorpolidoro",
635 "resourcePath": "/heitorpolidoro",
636 "url": "https://github.com/heitorpolidoro",
637 },
638 "clientMutationId": None,
639 }
640
641 def testEnableAutomergeDefaultValues(self):
642 # To reproduce this, the PR repository need to have the "Allow auto-merge" option enabled

Callers

nothing calls this directly

Calls 1

enable_automergeMethod · 0.80

Tested by

no test coverage detected