@@ -244,9 +244,6 @@ def test_idempotent_lambda_first_execution(
244
244
expected_params_update_item ,
245
245
expected_params_put_item ,
246
246
lambda_response ,
247
- serialized_lambda_response ,
248
- deserialized_lambda_response ,
249
- hashed_idempotency_key ,
250
247
lambda_context ,
251
248
):
252
249
"""
@@ -384,11 +381,9 @@ def test_idempotent_lambda_expired(
384
381
idempotency_config : IdempotencyConfig ,
385
382
persistence_store : DynamoDBPersistenceLayer ,
386
383
lambda_apigw_event ,
387
- timestamp_expired ,
388
384
lambda_response ,
389
385
expected_params_update_item ,
390
386
expected_params_put_item ,
391
- hashed_idempotency_key ,
392
387
lambda_context ,
393
388
):
394
389
"""
@@ -428,8 +423,6 @@ def test_idempotent_lambda_exception(
428
423
idempotency_config : IdempotencyConfig ,
429
424
persistence_store : DynamoDBPersistenceLayer ,
430
425
lambda_apigw_event ,
431
- timestamp_future ,
432
- lambda_response ,
433
426
hashed_idempotency_key ,
434
427
expected_params_put_item ,
435
428
lambda_context ,
@@ -594,9 +587,6 @@ def test_idempotent_persistence_exception_deleting(
594
587
idempotency_config : IdempotencyConfig ,
595
588
persistence_store : DynamoDBPersistenceLayer ,
596
589
lambda_apigw_event ,
597
- timestamp_future ,
598
- lambda_response ,
599
- hashed_idempotency_key ,
600
590
expected_params_put_item ,
601
591
lambda_context ,
602
592
):
@@ -638,9 +628,6 @@ def test_idempotent_persistence_exception_updating(
638
628
idempotency_config : IdempotencyConfig ,
639
629
persistence_store : DynamoDBPersistenceLayer ,
640
630
lambda_apigw_event ,
641
- timestamp_future ,
642
- lambda_response ,
643
- hashed_idempotency_key ,
644
631
expected_params_put_item ,
645
632
lambda_context ,
646
633
):
@@ -682,10 +669,6 @@ def test_idempotent_persistence_exception_getting(
682
669
idempotency_config : IdempotencyConfig ,
683
670
persistence_store : DynamoDBPersistenceLayer ,
684
671
lambda_apigw_event ,
685
- timestamp_future ,
686
- lambda_response ,
687
- hashed_idempotency_key ,
688
- expected_params_put_item ,
689
672
lambda_context ,
690
673
):
691
674
"""
@@ -727,8 +710,6 @@ def test_idempotent_lambda_first_execution_with_validation(
727
710
expected_params_update_item_with_validation ,
728
711
expected_params_put_item_with_validation ,
729
712
lambda_response ,
730
- hashed_idempotency_key ,
731
- hashed_validation_key ,
732
713
lambda_context ,
733
714
):
734
715
"""
@@ -1107,7 +1088,7 @@ def test_is_missing_idempotency_key():
1107
1088
indirect = True ,
1108
1089
)
1109
1090
def test_default_no_raise_on_missing_idempotency_key (
1110
- idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
1091
+ idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
1111
1092
):
1112
1093
# GIVEN a persistence_store with use_local_cache = False and event_key_jmespath = "body"
1113
1094
function_name = "foo"
@@ -1132,7 +1113,7 @@ def test_default_no_raise_on_missing_idempotency_key(
1132
1113
indirect = True ,
1133
1114
)
1134
1115
def test_raise_on_no_idempotency_key (
1135
- idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
1116
+ idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
1136
1117
):
1137
1118
# GIVEN a persistence_store with raise_on_no_idempotency_key and no idempotency key in the request
1138
1119
persistence_store .configure (idempotency_config )
@@ -1165,7 +1146,7 @@ def test_raise_on_no_idempotency_key(
1165
1146
indirect = True ,
1166
1147
)
1167
1148
def test_jmespath_with_powertools_json (
1168
- idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
1149
+ idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
1169
1150
):
1170
1151
# GIVEN an event_key_jmespath with powertools_json custom function
1171
1152
persistence_store .configure (idempotency_config , "handler" )
@@ -1186,7 +1167,7 @@ def test_jmespath_with_powertools_json(
1186
1167
1187
1168
@pytest .mark .parametrize ("config_with_jmespath_options" , ["powertools_json(data).payload" ], indirect = True )
1188
1169
def test_custom_jmespath_function_overrides_builtin_functions (
1189
- config_with_jmespath_options : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
1170
+ config_with_jmespath_options : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
1190
1171
):
1191
1172
# GIVEN a persistence store with a custom jmespath_options
1192
1173
# AND use a builtin powertools custom function
0 commit comments