Skip to content

测试:FakeGitHub 补 disable_auto_merge(T715 契约) - #77

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/fake-github-disable-auto-merge
Oct 6, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
chore/fake-github-disable-auto-merge

Conversation

@Snowson

@Snowson Snowson commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

测试桩 FakeGitHub(tests/test_harness_dispatch.py)补 disable_auto_merge 方法,记录调用并返回真。

背景:delivery-harness T715(PR SnowsonZ/delivery-harness#162)在派发否决路径新增对 GitHub.disable_auto_merge(pr) 的直接调用,该仓库 CI 的 consumer-contract 用本仓库 main 的 test_harness*.py 校验升级后的引擎,桩缺方法时 test_ci_over_budget_labels_and_escalates 报 AttributeError。只加方法,不改既有断言;对旧引擎无影响。

本地:python3 -m unittest tests.test_harness_dispatch 18 项通过,ruff 通过。

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@snowsonz-auto-merge snowsonz-auto-merge Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-merge:R0 K2,build 与 harness 通过,合并路由见本次 auto-merge 运行的 job summary(ee887fb2aba814f5a8c3c1e4f977dba344abfe01)

@github-actions
github-actions Bot merged commit 81b1b6f into main Oct 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant