-
Notifications
You must be signed in to change notification settings - Fork 402
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(idempotency): makes customers unit testing easier #719
Conversation
…ily, making it easier to test.
…nality to make testing easier
Codecov Report
@@ Coverage Diff @@
## develop #719 +/- ##
===========================================
- Coverage 99.97% 99.93% -0.05%
===========================================
Files 116 116
Lines 4866 4898 +32
Branches 267 271 +4
===========================================
+ Hits 4865 4895 +30
- Misses 0 1 +1
- Partials 1 2 +1
Continue to review full report at Codecov.
|
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.
those minor changes on bringing test setup along with the tests, and the indentation issues.
LGTM otherwise! 🎉
Co-authored-by: Heitor Lessa <[email protected]>
Co-authored-by: Heitor Lessa <[email protected]>
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: feat(feature-flags): improve "IN/NOT_IN"; new rule actions (aws-powertools#710) feat(idempotency): makes customers unit testing easier (aws-powertools#719) feat(feature-flags): get_raw_configuration property in Store (aws-powertools#720)
* develop: feat(feature-flags): improve "IN/NOT_IN"; new rule actions (aws-powertools#710) feat(idempotency): makes customers unit testing easier (aws-powertools#719) feat(feature-flags): get_raw_configuration property in Store (aws-powertools#720) feat: boto3 sessions in batch, parameters & idempotency (aws-powertools#717) feat: add get_raw_configuration property in store; expose store fix(mypy): a few return types, type signatures, and untyped areas (aws-powertools#718) docs: Terraform reference for SAR Lambda Layer (aws-powertools#716) chore(deps-dev): bump flake8-bugbear from 21.9.1 to 21.9.2 (aws-powertools#712) chore(deps): bump boto3 from 1.18.49 to 1.18.51 (aws-powertools#713) fix(idempotency): sorting keys before hashing
Issue #, if available: #631
Description of changes:
Alter idempotency DynamoDB class to lazily load the boto3 Table object, so that it can be more easily patched in tests. Add a new environment variable to disable the idempotency logic altogether without needing code changes. Add "testing your code" section to docs.
Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
View rendered docs/utilities/idempotency.md