@@ -631,7 +631,7 @@ def test_in_progress_never_saved_to_cache(
631
631
):
632
632
# GIVEN a data record with status "INPROGRESS"
633
633
# and persistence_store has use_local_cache = True
634
- persistence_store ._configure (idempotency_config )
634
+ persistence_store .configure (idempotency_config )
635
635
data_record = DataRecord ("key" , status = "INPROGRESS" )
636
636
637
637
# WHEN saving to local cache
@@ -644,7 +644,7 @@ def test_in_progress_never_saved_to_cache(
644
644
@pytest .mark .parametrize ("idempotency_config" , [{"use_local_cache" : False }], indirect = True )
645
645
def test_user_local_disabled (idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer ):
646
646
# GIVEN a persistence_store with use_local_cache = False
647
- persistence_store ._configure (idempotency_config )
647
+ persistence_store .configure (idempotency_config )
648
648
649
649
# WHEN calling any local cache options
650
650
data_record = DataRecord ("key" , status = "COMPLETED" )
@@ -666,7 +666,7 @@ def test_delete_from_cache_when_empty(
666
666
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
667
667
):
668
668
# GIVEN use_local_cache is True AND the local cache is empty
669
- persistence_store ._configure (idempotency_config )
669
+ persistence_store .configure (idempotency_config )
670
670
671
671
try :
672
672
# WHEN we _delete_from_cache
@@ -702,7 +702,7 @@ def test_default_no_raise_on_missing_idempotency_key(
702
702
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
703
703
):
704
704
# GIVEN a persistence_store with use_local_cache = False and event_key_jmespath = "body"
705
- persistence_store ._configure (idempotency_config )
705
+ persistence_store .configure (idempotency_config )
706
706
assert persistence_store .use_local_cache is False
707
707
assert "body" in persistence_store .event_key_jmespath
708
708
@@ -720,7 +720,7 @@ def test_raise_on_no_idempotency_key(
720
720
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
721
721
):
722
722
# GIVEN a persistence_store with raise_on_no_idempotency_key and no idempotency key in the request
723
- persistence_store ._configure (idempotency_config )
723
+ persistence_store .configure (idempotency_config )
724
724
persistence_store .raise_on_no_idempotency_key = True
725
725
assert persistence_store .use_local_cache is False
726
726
assert "body" in persistence_store .event_key_jmespath
@@ -747,7 +747,7 @@ def test_jmespath_with_powertools_json(
747
747
idempotency_config : IdempotencyConfig , persistence_store : DynamoDBPersistenceLayer
748
748
):
749
749
# GIVEN an event_key_jmespath with powertools_json custom function
750
- persistence_store ._configure (idempotency_config )
750
+ persistence_store .configure (idempotency_config )
751
751
sub_attr_value = "cognito_user"
752
752
key_attr_value = "some_key"
753
753
expected_value = [sub_attr_value , key_attr_value ]
@@ -769,7 +769,7 @@ def test_custom_jmespath_function_overrides_builtin_functions(
769
769
):
770
770
# GIVEN an persistence store with a custom jmespath_options
771
771
# AND use a builtin powertools custom function
772
- persistence_store ._configure (config_with_jmespath_options )
772
+ persistence_store .configure (config_with_jmespath_options )
773
773
774
774
with pytest .raises (jmespath .exceptions .UnknownFunctionError , match = "Unknown function: powertools_json()" ):
775
775
# WHEN calling _get_hashed_idempotency_key
0 commit comments