Skip to content

Commit de81aea

Browse files
author
Lucas McDonald
committed
m
1 parent 33740a9 commit de81aea

File tree

5 files changed

+9
-337
lines changed

5 files changed

+9
-337
lines changed

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/internal/condition_expression_builder.py

Lines changed: 0 additions & 334 deletions
This file was deleted.

DynamoDbEncryption/runtimes/python/test/items.py

Lines changed: 2 additions & 0 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
from decimal import Decimal
24

35
simple_item_ddb = {

DynamoDbEncryption/runtimes/python/test/requests.py

Lines changed: 3 additions & 1 deletion
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
"""Request constants for DynamoDB operations used for testing."""
24

35
from boto3.dynamodb.conditions import Attr, Key
@@ -140,7 +142,7 @@ def basic_batch_execute_statement_request_plaintext_table():
140142

141143
# No exhaustive requests are intended to be able to be used as real requests.
142144
# Some parameters conflict with each other when sent to DynamoDB.
143-
# These are only intended to test the conversion of the request from client to resource format.
145+
# These are only intended to test the conversion of the structure from client to resource format.
144146

145147

146148
def base_exhaustive_put_item_request(item):

DynamoDbEncryption/runtimes/python/test/responses.py

Lines changed: 2 additions & 0 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
from test.integ.encrypted.test_resource import INTEG_TEST_DEFAULT_DYNAMODB_TABLE_NAME
24

35

DynamoDbEncryption/runtimes/python/test/unit/internal/test_client_to_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from aws_dbesdk_dynamodb.internal.client_to_resource import ClientShapeToResourceShapeConverter
6-
from aws_dbesdk_dynamodb.internal.condition_expression_builder import InternalDBESDKDynamoDBConditionExpressionBuilder
6+
from boto3.dynamodb.conditions import ConditionExpressionBuilder
77

88
from ...items import (
99
complex_item_ddb,
@@ -261,7 +261,7 @@ def get_string_for_key_condition_expression(
261261
):
262262
"""Get the string for the key condition expression."""
263263
if not isinstance(key_condition_expression, str):
264-
built_expression = InternalDBESDKDynamoDBConditionExpressionBuilder().build_expression(
264+
built_expression = ConditionExpressionBuilder().build_expression(
265265
key_condition_expression, expression_attribute_names, expression_attribute_values
266266
)
267267
key_condition_expression = built_expression.condition_expression

0 commit comments

Comments
 (0)