@@ -795,7 +795,7 @@ with a truthy value. If you prefer setting this for specific tests, and are usin
795
795
796
796
@idempotent(persistence_store=persistence_layer)
797
797
def handler(event, context):
798
- print('expensive operation')
798
+ print('expensive operation')
799
799
return {
800
800
"payment_id": 12345,
801
801
"message": "success",
@@ -819,7 +819,7 @@ To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/
819
819
resource = boto3.resource("dynamodb", endpoint_url='http://localhost:8000')
820
820
table = resource.Table(app.persistence_layer.table_name)
821
821
app.persistence_layer.table = table
822
-
822
+
823
823
result = app.handler({'testkey': 'testvalue'}, {})
824
824
assert result['payment_id'] == 12345
825
825
```
@@ -835,7 +835,7 @@ To test with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/
835
835
836
836
@idempotent(persistence_store=persistence_layer)
837
837
def handler(event, context):
838
- print('expensive operation')
838
+ print('expensive operation')
839
839
return {
840
840
"payment_id": 12345,
841
841
"message": "success",
@@ -874,7 +874,7 @@ This means it is possible to pass a mocked Table resource, or stub various metho
874
874
875
875
@idempotent(persistence_store=persistence_layer)
876
876
def handler(event, context):
877
- print('expensive operation')
877
+ print('expensive operation')
878
878
return {
879
879
"payment_id": 12345,
880
880
"message": "success",
0 commit comments