Skip to content

Commit 67a5eeb

Browse files
author
Lucas McDonald
committed
m
1 parent 025cf87 commit 67a5eeb

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

DynamoDbEncryption/runtimes/python/test/requests.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def base_transact_get_item_request(keys):
6161
# Some parameters conflict with each other when sent to DynamoDB.
6262
# These are only intended to test the conversion of the request from client to resource format.
6363

64+
6465
def base_exhaustive_put_item_request(item):
65-
"""Base structure for exhaustive put_item requests.
66+
"""
67+
Base structure for exhaustive put_item requests.
6668
This is not intended to be able to be used as a real request.
6769
Some parameters conflict with each other when sent to DynamoDB.
6870
This is only intended to test the conversion of the request from client to resource format.
@@ -85,7 +87,8 @@ def base_exhaustive_put_item_request(item):
8587

8688

8789
def base_exhaustive_get_item_request(item):
88-
"""Base structure for exhaustive get_item requests.
90+
"""
91+
Base structure for exhaustive get_item requests.
8992
This is not intended to be able to be used as a real request.
9093
Some parameters conflict with each other when sent to DynamoDB.
9194
This is only intended to test the conversion of the request from client to resource format.
@@ -106,7 +109,8 @@ def base_exhaustive_get_item_request(item):
106109

107110

108111
def base_exhaustive_query_request(item):
109-
"""Base structure for exhaustive query requests.
112+
"""
113+
Base structure for exhaustive query requests.
110114
This is not intended to be able to be used as a real request.
111115
Some parameters conflict with each other when sent to DynamoDB.
112116
This is only intended to test the conversion of the request from client to resource format.
@@ -134,7 +138,8 @@ def base_exhaustive_query_request(item):
134138

135139

136140
def base_exhaustive_scan_request(item):
137-
"""Base structure for exhaustive scan requests.
141+
"""
142+
Base structure for exhaustive scan requests.
138143
This is not intended to be able to be used as a real request.
139144
Some parameters conflict with each other when sent to DynamoDB.
140145
This is only intended to test the conversion of the request from client to resource format.
@@ -286,7 +291,8 @@ def basic_put_item_request_dict(item):
286291

287292

288293
def exhaustive_put_item_request_dict(item):
289-
"""Get a put_item request in dict format for any item.
294+
"""
295+
Get a put_item request in dict format for any item.
290296
This is not intended to be able to be used as a real request.
291297
Some parameters conflict with each other when sent to DynamoDB.
292298
This is only intended to test the conversion of the request from client to resource format.
@@ -305,7 +311,8 @@ def basic_get_item_request_dict(item):
305311

306312

307313
def exhaustive_get_item_request_dict(item):
308-
"""Get a get_item request in dict format for any item.
314+
"""
315+
Get a get_item request in dict format for any item.
309316
This is not intended to be able to be used as a real request.
310317
Some parameters conflict with each other when sent to DynamoDB.
311318
This is only intended to test the conversion of the request from client to resource format.
@@ -331,7 +338,8 @@ def basic_query_request_dict_condition_expression(item):
331338

332339

333340
def exhaustive_query_request_dict(item):
334-
"""Get a query request in dict format for any item.
341+
"""
342+
Get a query request in dict format for any item.
335343
This is not intended to be able to be used as a real request.
336344
Some parameters conflict with each other when sent to DynamoDB.
337345
This is only intended to test the conversion of the request from client to resource format.
@@ -347,7 +355,8 @@ def basic_scan_request_dict(item):
347355

348356

349357
def exhaustive_scan_request_dict(item):
350-
"""Get a scan request in dict format for any item.
358+
"""
359+
Get a scan request in dict format for any item.
351360
This is not intended to be able to be used as a real request.
352361
Some parameters conflict with each other when sent to DynamoDB.
353362
This is only intended to test the conversion of the request from client to resource format.

DynamoDbEncryption/runtimes/python/test/responses.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ def basic_put_item_response(item):
77

88

99
def exhaustive_put_item_response(item):
10-
"""Get a put_item response in resource (ddb) format for any item.
10+
"""
11+
Get a put_item response in resource (ddb) format for any item.
1112
This is not intended to be a real response that DynamoDB would return,
1213
but the response should contain additional attributes that DynamoDB could return.
1314
This is only intended to exhaustively test the conversion of the request from client to resource format.
@@ -31,7 +32,8 @@ def basic_get_item_response(item):
3132

3233

3334
def exhaustive_get_item_response(item):
34-
"""Get a get_item response in resource (ddb) format for any item.
35+
"""
36+
Get a get_item response in resource (ddb) format for any item.
3537
This is not intended to be a real response that DynamoDB would return,
3638
but the response should contain additional attributes that DynamoDB could return.
3739
This is only intended to exhaustively test the conversion of the request from client to resource format.
@@ -54,7 +56,8 @@ def basic_query_response(items):
5456

5557

5658
def exhaustive_query_response(items):
57-
"""Get a query response in resource (ddb) format for any items.
59+
"""
60+
Get a query response in resource (ddb) format for any items.
5861
This is not intended to be a real response that DynamoDB would return,
5962
but the response should contain additional attributes that DynamoDB could return.
6063
This is only intended to exhaustively test the conversion of the request from client to resource format.
@@ -74,7 +77,8 @@ def basic_scan_response(items, keys):
7477

7578

7679
def exhaustive_scan_response(items, keys):
77-
"""Get a scan response in resource (ddb) format for any items.
80+
"""
81+
Get a scan response in resource (ddb) format for any items.
7882
This is not intended to be a real response that DynamoDB would return,
7983
but the response should contain additional attributes that DynamoDB could return.
8084
This is only intended to exhaustively test the conversion of the request from client to resource format.
@@ -95,7 +99,8 @@ def basic_batch_get_item_response(items):
9599

96100

97101
def exhaustive_batch_get_item_response(items):
98-
"""Get a batch_get_item response in resource (ddb) format for any items.
102+
"""
103+
Get a batch_get_item response in resource (ddb) format for any items.
99104
This is not intended to be a real response that DynamoDB would return,
100105
but the response should contain additional attributes that DynamoDB could return.
101106
This is only intended to exhaustively test the conversion of the request from client to resource format.
@@ -119,7 +124,8 @@ def basic_batch_write_item_put_response(items):
119124

120125

121126
def exhaustive_batch_write_item_put_response(items):
122-
"""Get a batch_write_item response in resource (ddb) format for any items.
127+
"""
128+
Get a batch_write_item response in resource (ddb) format for any items.
123129
This is not intended to be a real response that DynamoDB would return,
124130
but the response should contain additional attributes that DynamoDB could return.
125131
This is only intended to exhaustively test the conversion of the request from client to resource format.

0 commit comments

Comments
 (0)