Skip to content

Commit 161529e

Browse files
author
Lucas McDonald
committed
m
1 parent 34624b5 commit 161529e

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from aws_dbesdk_dynamodb.encrypted.client import EncryptedClient
55

6-
from . import sort_dynamodb_json_lists
7-
86
from ...constants import (
97
INTEG_TEST_DEFAULT_DYNAMODB_TABLE_NAME,
108
INTEG_TEST_DEFAULT_TABLE_CONFIGS,
@@ -25,6 +23,7 @@
2523
basic_query_paginator_request,
2624
basic_scan_paginator_request,
2725
)
26+
from . import sort_dynamodb_json_lists
2827

2928

3029
# Creates a matrix of tests for each value in param,
@@ -78,6 +77,7 @@ def query_paginator(client):
7877
def scan_paginator(client):
7978
return client.get_paginator("scan")
8079

80+
8181
# Creates a matrix of tests for each value in param,
8282
# with a user-friendly string for test output:
8383
# use_complex_item = True -> "complex_item"
@@ -134,6 +134,7 @@ def put_item_request(expect_standard_dictionaries, test_item):
134134
return {**basic_put_item_request_dict(test_item), "TableName": INTEG_TEST_DEFAULT_DYNAMODB_TABLE_NAME}
135135
return basic_put_item_request_ddb(test_item)
136136

137+
137138
def test_GIVEN_query_paginator_WHEN_paginate_THEN_returns_expected_items(
138139
client, query_paginator, paginate_query_request, put_item_request, test_item
139140
):

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
basic_scan_request_dict,
1616
)
1717

18+
1819
def encrypted_table():
1920
"""Create an encrypted table."""
2021
table = boto3.resource("dynamodb").Table(INTEG_TEST_DEFAULT_DYNAMODB_TABLE_NAME)

DynamoDbEncryption/runtimes/python/test/requests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def basic_query_paginator_request(key):
281281
"ExpressionAttributeValues": {":pk": key["partition_key"], ":sk": key["sort_key"]},
282282
}
283283

284+
284285
def basic_scan_paginator_request(item):
285286
"""Get a scan paginator request in DDB format for any item."""
286287
return {

DynamoDbEncryption/runtimes/python/test/unit/encrypted/test_paginator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_GIVEN_kwargs_has_PaginationConfig_WHEN_paginate_THEN_PaginationConfig_i
6262
QueryInputTransformInput(sdk_input=kwargs_without_pagination_config)
6363
)
6464

65+
6566
def test_GIVEN_invalid_class_attribute_WHEN_getattr_THEN_raise_error():
6667
# Create a mock with a specific spec that excludes our unknown attribute
6768
mock_boto3_dynamodb_client = MagicMock(spec=["put_item", "get_item", "query", "scan"])

0 commit comments

Comments
 (0)