You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utilities/idempotency.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1221,7 +1221,7 @@ with a truthy value. If you prefer setting this for specific tests, and are usin
1221
1221
1222
1222
### Testing with DynamoDB Local
1223
1223
1224
-
To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html), you can replace the `Table` resource used by the persistence layer with one you create inside your tests. This allows you to set the endpoint_url.
1224
+
To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html), you can replace the `DynamoDB client` used by the persistence layer with one you create inside your tests. This allows you to set the endpoint_url.
1225
1225
1226
1226
=== "tests.py"
1227
1227
@@ -1249,10 +1249,12 @@ To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/
1249
1249
return LambdaContext()
1250
1250
1251
1251
def test_idempotent_lambda(lambda_context):
1252
-
# Create our own Table resource using the endpoint for our DynamoDB Local instance
0 commit comments