feat(sfn/test_state): Support mocking ContextObject#13431
Merged
tiurin merged 2 commits intofeature/step-functions/test-state-mainfrom Nov 28, 2025
Merged
feat(sfn/test_state): Support mocking ContextObject#13431tiurin merged 2 commits intofeature/step-functions/test-state-mainfrom
tiurin merged 2 commits intofeature/step-functions/test-state-mainfrom
Conversation
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 39m 40s ⏱️ - 1h 59m 47s Results for commit d1ba2b3. ± Comparison against base commit c5d5aab. ♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 21m 38s ⏱️ - 1h 47m 29s Results for commit d1ba2b3. ± Comparison against base commit c5d5aab. ♻️ This comment has been updated with latest results. |
58f49e9
into
feature/step-functions/test-state-main
40 checks passed
tiurin
pushed a commit
that referenced
this pull request
Nov 28, 2025
Adds limited support for mocking a ContextObject in the SFN TestState API. Empty context case is not accounted for. Changes Uses pydantic (and some python magic) to validate that passed in context, and bubble up a validationexception. Reworks the inspectionData approach to instead patch each _eval_body and add appended results for a given key
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.
Motivation
Adds limited support for mocking a
ContextObjectin the SFN TestState API.Changes
inspectionDataapproach to instead patch each_eval_bodyand add appended results for a given keyTests
Related
Addresses DRG-109