From e979f7125fe1fde820bdee5c1f7b07e111f0f3a2 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Mon, 29 Apr 2024 13:18:08 +0200 Subject: [PATCH] TEST: Fixed testing data to conform to new array schema. --- .../table_json_conversion/data/error_simple_data.json | 8 ++++---- unittests/table_json_conversion/data/indirect_data.json | 4 ++-- .../table_json_conversion/data/multiple_choice_data.json | 4 ++-- .../table_json_conversion/data/multiple_refs_data.json | 4 ++-- unittests/table_json_conversion/data/simple_data.json | 8 ++++---- .../data/simple_data_ascii_chars.json | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/unittests/table_json_conversion/data/error_simple_data.json b/unittests/table_json_conversion/data/error_simple_data.json index bfea88b6..4d57b033 100644 --- a/unittests/table_json_conversion/data/error_simple_data.json +++ b/unittests/table_json_conversion/data/error_simple_data.json @@ -1,11 +1,11 @@ { - "Training": { + "Training": [{ "duration": 1.0, "participants": 0.5 - }, - "Person": { + }], + "Person": [{ "family_name": "Auric", "given_name": "Goldfinger", "Organisation": "Federal Reserve" - } + }] } diff --git a/unittests/table_json_conversion/data/indirect_data.json b/unittests/table_json_conversion/data/indirect_data.json index c77dd1ff..76db75d9 100644 --- a/unittests/table_json_conversion/data/indirect_data.json +++ b/unittests/table_json_conversion/data/indirect_data.json @@ -1,5 +1,5 @@ { - "Wrapper": { + "Wrapper": [{ "Results": [ { "year": 2022, @@ -14,5 +14,5 @@ "name": "Basic Training", "url": "www.example.com/training/basic" } - } + }] } diff --git a/unittests/table_json_conversion/data/multiple_choice_data.json b/unittests/table_json_conversion/data/multiple_choice_data.json index 1f14911e..ee24ef7a 100644 --- a/unittests/table_json_conversion/data/multiple_choice_data.json +++ b/unittests/table_json_conversion/data/multiple_choice_data.json @@ -1,5 +1,5 @@ { - "Training": { + "Training": [{ "name": "Super Skill Training", "date": "2024-04-17", "skills": [ @@ -7,5 +7,5 @@ "Evaluation" ], "exam_types": [] - } + }] } diff --git a/unittests/table_json_conversion/data/multiple_refs_data.json b/unittests/table_json_conversion/data/multiple_refs_data.json index 5b8ce913..fa7c7af8 100644 --- a/unittests/table_json_conversion/data/multiple_refs_data.json +++ b/unittests/table_json_conversion/data/multiple_refs_data.json @@ -1,5 +1,5 @@ { - "Training": { + "Training": [{ "trainer": [], "participant": [ { @@ -44,5 +44,5 @@ "date": "2024-03-21T14:12:00.000Z", "url": "www.indiscale.com", "name": "Example training with multiple organizations." - } + }] } diff --git a/unittests/table_json_conversion/data/simple_data.json b/unittests/table_json_conversion/data/simple_data.json index 9997f17e..92a1661a 100644 --- a/unittests/table_json_conversion/data/simple_data.json +++ b/unittests/table_json_conversion/data/simple_data.json @@ -1,5 +1,5 @@ { - "Training": { + "Training": [{ "date": "2023-01-01", "url": "www.indiscale.com", "coach": [ @@ -23,10 +23,10 @@ "participants": 1, "subjects": ["Math", "Physics"], "remote": false - }, - "Person": { + }], + "Person": [{ "family_name": "Steve", "given_name": "Stevie", "Organisation": "IMF" - } + }] } diff --git a/unittests/table_json_conversion/data/simple_data_ascii_chars.json b/unittests/table_json_conversion/data/simple_data_ascii_chars.json index b1d13ebe..84e22b9b 100644 --- a/unittests/table_json_conversion/data/simple_data_ascii_chars.json +++ b/unittests/table_json_conversion/data/simple_data_ascii_chars.json @@ -1,5 +1,5 @@ { - "Training": { + "Training": [{ "date": "2023-01-01", "url": "char: >\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009<", "subjects": [ @@ -9,10 +9,10 @@ ">\u0020\u0021\u0022\u0023\u0024\u0025\u0026\u0027<", ">\u0028\u0029\u002a\u002b\u002c\u002d\u002e\u002f<" ] - }, - "Person": { + }], + "Person": [{ "family_name": "Steve", "given_name": "Stevie", "Organisation": "IMF" - } + }] } -- GitLab