Document how to unit test idempotency
What were you initially searching for in the docs?
How to unit test code when using idempotency utility
Is this related to an existing part of the documentation? Please share a link
Describe how we could make it clearer
Like other utilities, create a section Testing your code with an example test.
If you have a proposed update, please share it here
We are facing issues with UT as well.
Our main issue is that, as DynamoDBPersistenceLayer is eager to create table. Every python script that we use this annotation needs have mocks in place in advance. Even to test non annotated methods at the same python file.
My question is:
- Am i missing something? (This is why i am interacting with this ticket)
- Should i cut a ticket and raise a PR to make
DynamoDBPersistenceLayerto lazy create boto resources?
Hey @lucasam if you could contribute that would be awesome, as I'm on vacation for two more weeks.
Thanks a lot @cakepietoast !!!