Skip to content

Commit 16725f8

Browse files
lint
1 parent f9d60a8 commit 16725f8

3 files changed

+4
-7
lines changed

test/unit/test_streaming_client_configs.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@
3333
# Ideally, this logic would be based on mocking imports and testing logic,
3434
# but doing that introduces errors that cause other tests to fail.
3535
try:
36-
from aws_cryptographic_materialproviders.mpl.references import (
37-
ICryptographicMaterialsManager,
38-
IKeyring,
39-
)
36+
from aws_cryptographic_materialproviders.mpl.references import ICryptographicMaterialsManager, IKeyring
4037
HAS_MPL = True
4138

4239
from aws_encryption_sdk.materials_managers.mpl.cmm import CryptoMaterialsManagerFromMPL

test/unit/test_streaming_client_stream_decryptor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ def test_GIVEN_materials_has_required_encryption_context_keys_attr_WHEN_read_hea
10711071
self,
10721072
mock_verifier,
10731073
*_
1074-
):
1074+
):
10751075
required_encryption_context_keys_values = [
10761076
# Case of empty encryption context list is not allowed;
10771077
# if a list is provided, it must be non-empty.
@@ -1126,7 +1126,7 @@ def test_GIVEN_materials_has_required_encryption_context_keys_attr_WHEN_read_hea
11261126
test_decryptor._read_header()
11271127

11281128
# Then: Assert correctness of partitioned EC
1129-
for k in encryption_context:
1129+
for k in encryption_context.keys():
11301130
# If a key is in required_encryption_context_keys, then ...
11311131
if k in required_encryption_context_keys:
11321132
# ... its EC is in the StreamEncryptor._required_encryption_context

test/unit/test_streaming_client_stream_encryptor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def test_GIVEN_has_mpl_AND_encryption_materials_has_required_EC_keys_WHEN_prep_m
512512
test_encryptor._prep_message()
513513

514514
# Then: Assert correctness of partitioned EC
515-
for k in encryption_context:
515+
for k in encryption_context.keys():
516516
# If a key is in required_encryption_context_keys, then
517517
if k in required_encryption_context_keys:
518518
# 1) Its EC is in the StreamEncryptor._required_encryption_context

0 commit comments

Comments
 (0)