Repository navigation
测试:FakeGitHub 补 disable_auto_merge(T715 契约) - #77
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
测试桩
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_dispatch18 项通过,ruff 通过。🤖 Generated with Claude Code