File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -814,12 +814,12 @@ To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/
814
814
815
815
import app
816
816
817
- # Create our own Table resource using the endpoint for our DynamoDB Local instance
818
- resource = boto3.resource("dynamodb", endpoint_url='http://localhost:8000')
819
- table = resource.Table(app.persistence_layer.table_name)
820
- app.persistence_layer.table = table
821
-
822
817
def test_idempotent_lambda():
818
+ # Create our own Table resource using the endpoint for our DynamoDB Local instance
819
+ resource = boto3.resource("dynamodb", endpoint_url='http://localhost:8000')
820
+ table = resource.Table(app.persistence_layer.table_name)
821
+ app.persistence_layer.table = table
822
+
823
823
result = app.handler({'testkey': 'testvalue'}, {})
824
824
assert result['payment_id'] == 12345
825
825
```
You can’t perform that action at this time.
0 commit comments