File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
DynamoDbEncryption/runtimes/python/test/unit/internal Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -832,6 +832,18 @@ def test_GIVEN_test_update_item_request_WHEN_resource_to_client_THEN_returns_ddb
832
832
assert actual_ddb_request == expected_ddb_request
833
833
834
834
835
+ def test_GIVEN_update_item_request_without_table_name_WHEN_resource_to_client_THEN_raises_error (
836
+ test_update_item_request_dict ,
837
+ ):
838
+ # Given: ResourceShapeToClientShapeConverter without table name
839
+ resource_to_client_converter_without_table_name = ResourceShapeToClientShapeConverter (table_name = None )
840
+ # Given: Put item request without table name
841
+ # Then: Raises ValueError
842
+ with pytest .raises (ValueError ):
843
+ # When: Converting to resource format
844
+ resource_to_client_converter_without_table_name .update_item_request (test_update_item_request_dict )
845
+
846
+
835
847
def test_GIVEN_update_item_response_WHEN_resource_to_client_THEN_raises_NotImplementedError ():
836
848
# Given: Update item response
837
849
response = {"Some" : "Response" }
You can’t perform that action at this time.
0 commit comments