Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d508e9a9b7 |
@@ -92,8 +92,9 @@ def test_push_open_pr_and_reconcile(tmp_path: Path) -> None:
|
|||||||
# A4 is only real if the server enforces it. The agent's own token
|
# A4 is only real if the server enforces it. The agent's own token
|
||||||
# must not be able to merge the PR it just opened, and must not be
|
# must not be able to merge the PR it just opened, and must not be
|
||||||
# able to push to the protected default branch at all.
|
# able to push to the protected default branch at all.
|
||||||
merged = client._http.post(f"/repos/{repo_path}/pulls/{pr.number}/merge",
|
merged = client._http.post(
|
||||||
json={"Do": "merge"})
|
f"/repos/{repo_path}/pulls/{pr.number}/merge", json={"Do": "merge"}
|
||||||
|
)
|
||||||
assert merged.status_code >= 400, (
|
assert merged.status_code >= 400, (
|
||||||
"the agent merged its own PR: branch protection is not enforcing "
|
"the agent merged its own PR: branch protection is not enforcing "
|
||||||
"the human gate"
|
"the human gate"
|
||||||
|
|||||||
Reference in new issue
Block a user