From e00c1f128e0095a3a12f55e40ba6579339b74cd2 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 30 Aug 2024 15:53:27 +0200 Subject: [PATCH] DynamoDB: Improve software test about decoding a list with empty string --- tests/io/dynamodb/test_copy.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/io/dynamodb/test_copy.py b/tests/io/dynamodb/test_copy.py index b758d59a..647f4286 100644 --- a/tests/io/dynamodb/test_copy.py +++ b/tests/io/dynamodb/test_copy.py @@ -15,10 +15,17 @@ } ] }, + "location": { + "M": { + "coordinates": {"L": [{"S": ""}]}, + "meetingPoint": {"S": "At the end of the tunnel"}, + "address": {"S": "Salzbergwerk Berchtesgaden"}, + }, + }, } -def test_dynamodb_copy_list_of_objects(caplog, cratedb, dynamodb, dynamodb_test_manager): +def test_dynamodb_copy(caplog, cratedb, dynamodb, dynamodb_test_manager): """ CLI test: Invoke `ctk load table` for DynamoDB. """ @@ -51,4 +58,9 @@ def test_dynamodb_copy_list_of_objects(caplog, cratedb, dynamodb, dynamodb_test_ "utm_source": "google", } ], + "location": { + "coordinates": [""], + "meetingPoint": "At the end of the tunnel", + "address": "Salzbergwerk Berchtesgaden", + }, }