test(approval): cover approval orchestration paths - #47563
Open
wgu9 wants to merge 3 commits into
Open
Conversation
wgu9
force-pushed
the
test/approval-coverage
branch
from
July 3, 2026 10:29
cc7426c to
3f00dc7
Compare
Contributor
Author
|
Rebased this on current Validation:
|
teknium1
reviewed
Jul 14, 2026
teknium1
left a comment
Contributor
There was a problem hiding this comment.
Thanks for adding focused approval coverage. One assertion needs updating for current main.
Problems
tests/tools/test_approval.py:321expects_await_gateway_decision()to return exactly two keys. Current main returns{"resolved": ..., "choice": ..., "reason": ...}attools/approval.py:2556(thereasonfield came fromcb6c47af08), so this test would fail after salvage.
Suggested changes
- Assert the required fields individually at
tests/tools/test_approval.py:321—resolvedandchoice—and optionally assertreason is None, rather than asserting the entire return dict.
Automated hermes-sweeper review.
wgu9
force-pushed
the
test/approval-coverage
branch
from
July 20, 2026 07:04
8a41145 to
c4518cf
Compare
Contributor
Author
|
Rebased onto current |
This was referenced Aug 1, 2026
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.
Summary
Coverage
Tests
Closes #36523