summaryrefslogtreecommitdiff
path: root/src/test/test_hydrilla_builder.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-18 13:45:53 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-18 16:10:43 +0100
commit9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae (patch)
treea34c686bb2d44d32477f19554f3779f68afdfb85 /src/test/test_hydrilla_builder.py
parent136859ca6da6350853040b01f9a4bb3af09689df (diff)
downloadhydrilla-builder-9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae.tar.gz
hydrilla-builder-9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae.zip
make "uuid" an optional property
Diffstat (limited to 'src/test/test_hydrilla_builder.py')
-rw-r--r--src/test/test_hydrilla_builder.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test_hydrilla_builder.py b/src/test/test_hydrilla_builder.py
index c8d29f1..93392db 100644
--- a/src/test/test_hydrilla_builder.py
+++ b/src/test/test_hydrilla_builder.py
@@ -273,6 +273,14 @@ def modify_index_good(settings: CaseSettings, obj: dict) -> None:
settings.expected_mapping['payloads'] = {}
+ # Don't use UUIDs (they are optional)
+ for definition in obj['definitions']:
+ del definition['uuid']
+
+ for description in settings.expected():
+ if 'uuid' in description:
+ del description['uuid']
+
# Add some unrecognized properties that should be stripped
to_process = [obj]
while to_process: