@@ -648,7 +648,7 @@ def test_in_progress_never_saved_to_cache(
648
648
):
649
649
# GIVEN a data record with status "INPROGRESS"
650
650
# and persistence_store has use_local_cache = True
651
- persistence_store .configure (idempotency_config , "handler" )
651
+ persistence_store .configure (idempotency_config )
652
652
data_record = DataRecord ("key" , status = "INPROGRESS" )
653
653
654
654
# WHEN saving to local cache
@@ -661,7 +661,7 @@ def test_in_progress_never_saved_to_cache(
661
661
@pytest .mark .parametrize ("idempotency_config" , [{"use_local_cache" : False }], indirect = True )
662
662
def test_user_local_disabled (idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer ):
663
663
# GIVEN a persistence_store with use_local_cache = False
664
- persistence_store .configure (idempotency_config , "" )
664
+ persistence_store .configure (idempotency_config )
665
665
666
666
# WHEN calling any local cache options
667
667
data_record = DataRecord ("key" , status = "COMPLETED" )
@@ -683,7 +683,7 @@ def test_delete_from_cache_when_empty(
683
683
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
684
684
):
685
685
# GIVEN use_local_cache is True AND the local cache is empty
686
- persistence_store .configure (idempotency_config , "handler" )
686
+ persistence_store .configure (idempotency_config )
687
687
688
688
try :
689
689
# WHEN we _delete_from_cache
@@ -755,7 +755,7 @@ def test_raise_on_no_idempotency_key(
755
755
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
756
756
):
757
757
# GIVEN a persistence_store with raise_on_no_idempotency_key and no idempotency key in the request
758
- persistence_store .configure (idempotency_config , "handler" )
758
+ persistence_store .configure (idempotency_config )
759
759
persistence_store .raise_on_no_idempotency_key = True
760
760
assert persistence_store .use_local_cache is False
761
761
assert "body" in persistence_store .event_key_jmespath
@@ -802,9 +802,9 @@ def test_jmespath_with_powertools_json(
802
802
def test_custom_jmespath_function_overrides_builtin_functions (
803
803
config_with_jmespath_options : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer , lambda_context
804
804
):
805
- # GIVEN an persistence store with a custom jmespath_options
805
+ # GIVEN a persistence store with a custom jmespath_options
806
806
# AND use a builtin powertools custom function
807
- persistence_store .configure (config_with_jmespath_options , "handler" )
807
+ persistence_store .configure (config_with_jmespath_options )
808
808
809
809
with pytest .raises (jmespath .exceptions .UnknownFunctionError , match = "Unknown function: powertools_json()" ):
810
810
# WHEN calling _get_hashed_idempotency_key
0 commit comments