@@ -420,7 +420,6 @@ def test_WHEN_update_item_with_signed_attribute_THEN_raises_DynamoDbEncryptionTr
420
420
update_item_request_signed_attribute ,
421
421
encrypted ,
422
422
):
423
- """Test that update_item raises DynamoDbEncryptionTransformsException."""
424
423
if not encrypted :
425
424
pytest .skip ("Skipping negative test for plaintext client" )
426
425
@@ -431,6 +430,11 @@ def test_WHEN_update_item_with_signed_attribute_THEN_raises_DynamoDbEncryptionTr
431
430
client .update_item (** update_item_request_signed_attribute )
432
431
433
432
433
+ # Create a matrix of tests for each value in param,
434
+ # with a user-friendly string for test output:
435
+ # execute_uses_encrypted_table = True -> "encrypted_table"
436
+ # execute_uses_encrypted_table = False -> "plaintext_table"
437
+ # This indicates whether an execute_(statement,transaction,etc.) operation should be on an encrypted table
434
438
@pytest .fixture (params = [True , False ], ids = ["encrypted_table" , "plaintext_table" ])
435
439
def execute_uses_encrypted_table (request ):
436
440
return request .param
@@ -449,7 +453,6 @@ def test_WHEN_execute_statement_for_encrypted_table_THEN_raises_DynamoDbEncrypti
449
453
encrypted ,
450
454
execute_uses_encrypted_table ,
451
455
):
452
- """Test that execute_statement raises DynamoDbEncryptionTransformsException."""
453
456
if not encrypted :
454
457
pytest .skip ("Skipping negative test for plaintext client" )
455
458
@@ -491,7 +494,6 @@ def test_WHEN_execute_transaction_for_encrypted_table_THEN_raises_DynamoDbEncryp
491
494
encrypted ,
492
495
execute_uses_encrypted_table ,
493
496
):
494
- """Test that execute_transaction raises DynamoDbEncryptionTransformsException."""
495
497
if not encrypted :
496
498
pytest .skip ("Skipping negative test for plaintext client" )
497
499
@@ -537,7 +539,6 @@ def test_WHEN_batch_execute_statement_for_encrypted_table_THEN_raises_DynamoDbEn
537
539
encrypted ,
538
540
execute_uses_encrypted_table ,
539
541
):
540
- """Test that batch_execute_statement raises DynamoDbEncryptionTransformsException."""
541
542
if not encrypted :
542
543
pytest .skip ("Skipping negative test for plaintext client" )
543
544
0 commit comments