Skip to content

Commit 4b5ed7f

Browse files
Merge pull request #299 from farleyb-amazon/import-fix
Fix missing import from top level module
2 parents 02b442f + 3159641 commit 4b5ed7f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/aws_encryption_sdk/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from aws_encryption_sdk.identifiers import Algorithm, CommitmentPolicy, __version__ # noqa
2222
from aws_encryption_sdk.key_providers.kms import ( # noqa
2323
DiscoveryAwsKmsMasterKeyProvider,
24+
KMSMasterKeyProvider,
2425
KMSMasterKeyProviderConfig,
2526
StrictAwsKmsMasterKeyProvider,
2627
)

test/unit/test_aws_encryption_sdk.py

+7
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,10 @@ def test_stream_deprecation_warning(self):
101101
with pytest.raises(DeprecationWarning) as excinfo:
102102
aws_encryption_sdk.stream(mode="e", source=sentinel.a, key_provider=sentinel.b)
103103
excinfo.match("This method is deprecated and will be removed in a future version")
104+
105+
def test_kms_master_key_provider_deprecation_warning(self):
106+
warnings.simplefilter("error")
107+
108+
with pytest.raises(DeprecationWarning) as excinfo:
109+
aws_encryption_sdk.KMSMasterKeyProvider()
110+
excinfo.match("KMSMasterKeyProvider is deprecated")

0 commit comments

Comments
 (0)