fix: update extraction tool test for required attachment ID #493
+0
−22
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
This PR removes the
test_extraction_tool_handles_missing_attachment_idtest that is no longer needed after a breaking change in uipath-python.Breaking Change
uipath-python PR: #1221 - feat: extend invoke process with attachments support
What Changed:
The
Attachment.idfield was changed from optional to required:Why the Test Was Removed
The
test_extraction_tool_handles_missing_attachment_idtest is no longer needed because:Breaking change makes scenario invalid: After PR #1221,
Attachment.idis now a required field. The scenario of "missing attachment ID" is no longer a valid use case.Duplicates existing coverage: The test
test_extraction_tool_downloads_attachment_and_calls_interruptalready covers the happy path with a valid attachment ID, providing sufficient coverage.Environment inconsistency: The test behaved differently between local and CI environments:
ValidationErrorbecause ID field was missingid=None, then failed withTypeErrorduring executionReviewer feedback: The PR review noted that this test duplicates coverage with the existing test for the happy path.
Changes
test_extraction_tool_handles_missing_attachment_idtesttest_extraction_tool_downloads_attachment_and_calls_interrupt(covers valid attachment with ID)Impact
Related
🤖 Generated with Claude Code