test(agent): use canonical actionCenter channel type in escalation fixture#896
Merged
Merged
Conversation
…xture The escalation_resource fixture used type="action_center" (snake_case), which only validated because the escalation channel `type` was an open str. Every other escalation fixture already uses the canonical "actionCenter" (the real wire value). Align this one so it parses under a stricter, discriminated channel model. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates a single test fixture to use the canonical escalation channel wire value (actionCenter) so the fixture continues to parse under the newer stricter/discriminated escalation-channel model.
Changes:
- Update
escalation_resourcefixture channeltypefromaction_centertoactionCenterto match the canonical value used elsewhere in the test suite.
|
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
tests/agent/tools/test_tool_factory.py'sescalation_resourcefixture set the escalation channeltypetoaction_center(snake_case). It only ever validated because the channeltypeis currently an openstr. Every other escalation fixture in the suite already uses the canonicalactionCenter(the real wire value).Aligning this single fixture makes it parse under the stricter, discriminated escalation-channel model introduced in uipath-python#1686, which surfaced it via the
uipath-langchaincross-test (Input should be 'actionCenter'). No behavior change — the fixture targets an Action Center channel either way.🤖 Generated with Claude Code