From ce21eb967e348f2faf13361fa1fe388ece60514d Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Mon, 6 Nov 2023 16:31:56 +0100 Subject: [PATCH] FIX: Also changed in tests. --- unittests/test_json_schema_exporter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/test_json_schema_exporter.py b/unittests/test_json_schema_exporter.py index 86a40baa..95601ed9 100644 --- a/unittests/test_json_schema_exporter.py +++ b/unittests/test_json_schema_exporter.py @@ -112,8 +112,8 @@ def test_empty_rt(): assert len(schema["required"]) == 0 assert schema["additionalProperties"] is False - schema = rtjs(rt, name_for_new_reference_records=True, - description_for_new_reference_records=True) + schema = rtjs(rt, name_property_for_new_records=True, + description_property_for_new_records=True) assert len(schema["properties"]) == 2 assert "name" in schema["properties"] @@ -440,8 +440,8 @@ def test_rt_with_references(): rt = db.RecordType() rt.add_property(name="RefProp", datatype=db.LIST("OtherType")) - schema = rtjs(rt, additional_properties=False, name_for_new_reference_records=True, - description_for_new_reference_records=True) + schema = rtjs(rt, additional_properties=False, name_property_for_new_records=True, + description_property_for_new_records=True) assert schema["additionalProperties"] is False assert "name" in schema["properties"] assert schema["properties"]["name"]["type"] == "string" -- GitLab