-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(sfn/test_state): Support mocking ContextObject #13431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sfn/test_state): Support mocking ContextObject #13431
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. |
tiurin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
58f49e9
into
feature/step-functions/test-state-main
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
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