@@ -36,10 +36,10 @@ def pytest_generate_tests(metafunc):
3636 set_parameterized_kms_cmps (metafunc , require_attributes = False )
3737
3838
39- def test_verify_user_agent (all_aws_kms_cmps , caplog ):
39+ def test_verify_user_agent (all_aws_kms_cmp_builders , caplog ):
4040 caplog .set_level (level = logging .DEBUG )
4141
42- all_aws_kms_cmps .encryption_materials (EncryptionContext ())
42+ all_aws_kms_cmp_builders () .encryption_materials (EncryptionContext ())
4343
4444 assert USER_AGENT_SUFFIX in caplog .text
4545
@@ -54,10 +54,10 @@ def _many_items():
5454
5555
5656@pytest .mark .parametrize ("item" , _many_items ())
57- def test_aws_kms_diverse_indexes (all_aws_kms_cmps , item ):
57+ def test_aws_kms_diverse_indexes (all_aws_kms_cmp_builders , item ):
5858 """Verify that AWS KMS cycle works for items with all possible combinations for primary index attribute types."""
5959 crypto_config = CryptoConfig (
60- materials_provider = all_aws_kms_cmps ,
60+ materials_provider = all_aws_kms_cmp_builders () ,
6161 encryption_context = EncryptionContext (
6262 partition_key_name = "partition_key" , sort_key_name = "sort_key" , attributes = dict_to_ddb (item )
6363 ),
@@ -68,9 +68,9 @@ def test_aws_kms_diverse_indexes(all_aws_kms_cmps, item):
6868 functional_test_utils .cycle_item_check (item , crypto_config )
6969
7070
71- def test_aws_kms_item_cycle (all_aws_kms_cmps , parametrized_actions , parametrized_item ):
71+ def test_aws_kms_item_cycle (all_aws_kms_cmp_builders , parametrized_actions , parametrized_item ):
7272 crypto_config = CryptoConfig (
73- materials_provider = all_aws_kms_cmps ,
73+ materials_provider = all_aws_kms_cmp_builders () ,
7474 encryption_context = EncryptionContext (),
7575 attribute_actions = parametrized_actions ,
7676 )
@@ -80,9 +80,9 @@ def test_aws_kms_item_cycle(all_aws_kms_cmps, parametrized_actions, parametrized
8080@pytest .mark .slow
8181@hypothesis_strategies .SLOW_SETTINGS
8282@hypothesis .given (item = hypothesis_strategies .ddb_items )
83- def test_aws_kms_item_cycle_hypothesis_slow (all_aws_kms_cmps , hypothesis_actions , item ):
83+ def test_aws_kms_item_cycle_hypothesis_slow (all_aws_kms_cmp_builders , hypothesis_actions , item ):
8484 crypto_config = CryptoConfig (
85- materials_provider = all_aws_kms_cmps ,
85+ materials_provider = all_aws_kms_cmp_builders () ,
8686 encryption_context = EncryptionContext (),
8787 attribute_actions = hypothesis_actions ,
8888 )
@@ -92,9 +92,9 @@ def test_aws_kms_item_cycle_hypothesis_slow(all_aws_kms_cmps, hypothesis_actions
9292@pytest .mark .veryslow
9393@hypothesis_strategies .VERY_SLOW_SETTINGS
9494@hypothesis .given (item = hypothesis_strategies .ddb_items )
95- def test_aws_kms_item_cycle_hypothesis_veryslow (all_aws_kms_cmps , hypothesis_actions , item ):
95+ def test_aws_kms_item_cycle_hypothesis_veryslow (all_aws_kms_cmp_builders , hypothesis_actions , item ):
9696 crypto_config = CryptoConfig (
97- materials_provider = all_aws_kms_cmps ,
97+ materials_provider = all_aws_kms_cmp_builders () ,
9898 encryption_context = EncryptionContext (),
9999 attribute_actions = hypothesis_actions ,
100100 )
0 commit comments