Skip to content

Commit a7bc85f

Browse files
author
Lucas McDonald
committed
m
1 parent 0dfd612 commit a7bc85f

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/models/dynamodb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44

55
# ruff: noqa: F403
66
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models import *
7+
8+
# Dynamically define __all__ to reflect everything imported
9+
__all__ = [name for name in dir() if not name.startswith("_") and name != "sys" and name not in ['aws_cryptographic_material_providers', 'aws_dbesdk_dynamodb']]

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/models/structured_encryption.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44

55
# ruff: noqa: F403
66
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption.models import *
7+
8+
# Dynamically define __all__ to reflect everything imported
9+
__all__ = [name for name in dir() if not name.startswith("_") and name != "sys" and name not in ['aws_cryptographic_material_providers', 'aws_dbesdk_dynamodb']]

DynamoDbEncryption/runtimes/python/test/integ/encrypted/test_client.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
13
import boto3
24
import pytest
35
from boto3.dynamodb.types import TypeDeserializer, TypeSerializer
@@ -45,7 +47,10 @@
4547
serializer = TypeSerializer()
4648
deserializer = TypeDeserializer()
4749

48-
50+
# Creates a matrix of tests for each value in param,
51+
# with a user-friendly string for test output:
52+
# expect_standard_dictionaries = True -> "standard_dicts"
53+
# expect_standard_dictionaries = False -> "ddb_json"
4954
@pytest.fixture(params=[True, False], ids=["standard_dicts", "ddb_json"])
5055
def expect_standard_dictionaries(request):
5156
return request.param
@@ -66,7 +71,10 @@ def plaintext_client(expect_standard_dictionaries):
6671
client = boto3.client("dynamodb")
6772
return client
6873

69-
74+
# Creates a matrix of tests for each value in param,
75+
# with a user-friendly string for test output:
76+
# encrypted = True -> "encrypted"
77+
# encrypted = False -> "plaintext"
7078
@pytest.fixture(params=[True, False], ids=["encrypted", "plaintext"])
7179
def encrypted(request):
7280
return request.param
@@ -79,7 +87,10 @@ def client(encrypted, expect_standard_dictionaries):
7987
else:
8088
return plaintext_client(expect_standard_dictionaries)
8189

82-
90+
# Creates a matrix of tests for each value in param,
91+
# with a user-friendly string for test output:
92+
# use_complex_item = True -> "complex_item"
93+
# use_complex_item = False -> "simple_item"
8394
@pytest.fixture(params=[True, False], ids=["complex_item", "simple_item"])
8495
def use_complex_item(request):
8596
return request.param

0 commit comments

Comments
 (0)