@@ -236,7 +236,7 @@ def test_encrypt_with_require_policy_fail_when_retrieving_invalid_cmm_materials(
236236 required_encrypting_client = aws_encryption_sdk .EncryptionSDKClient (
237237 commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
238238 )
239-
239+
240240 provider = StaticRawMasterKeyProvider (
241241 wrapping_algorithm = WrappingAlgorithm .AES_256_GCM_IV12_TAG16_NO_PADDING ,
242242 encryption_key_type = EncryptionKeyType .SYMMETRIC ,
@@ -249,7 +249,7 @@ def test_encrypt_with_require_policy_fail_when_retrieving_invalid_cmm_materials(
249249 )
250250 plaintext = b"Yellow Submarine"
251251
252- ciphertext , _ = forbid_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
252+ _ , _ = forbid_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
253253 with pytest .raises (ActionNotAllowedError ) as excinfo :
254254 required_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
255255 excinfo .match ("Configuration conflict. Cannot encrypt due to .* requiring only committed messages" )
@@ -264,7 +264,7 @@ def test_encrypt_with_forbid_policy_fail_when_retrieving_invalid_cmm_materials()
264264 required_encrypting_client = aws_encryption_sdk .EncryptionSDKClient (
265265 commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
266266 )
267-
267+
268268 provider = StaticRawMasterKeyProvider (
269269 wrapping_algorithm = WrappingAlgorithm .AES_256_GCM_IV12_TAG16_NO_PADDING ,
270270 encryption_key_type = EncryptionKeyType .SYMMETRIC ,
@@ -277,7 +277,7 @@ def test_encrypt_with_forbid_policy_fail_when_retrieving_invalid_cmm_materials()
277277 )
278278 plaintext = b"Yellow Submarine"
279279
280- ciphertext , _ = required_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
280+ _ , _ = required_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
281281 with pytest .raises (ActionNotAllowedError ) as excinfo :
282282 forbid_encrypting_client .encrypt (source = plaintext , materials_manager = ccmm )
283283 excinfo .match ("Configuration conflict. Cannot encrypt due to .* requiring only non-committed messages." )
0 commit comments