diff --git a/unittests/test_json_schema_exporter.py b/unittests/test_json_schema_exporter.py index 86a40baa02223701ac27d093da00f446266d936b..95601ed9c07d6331d5340d63742d3e8dc5f74570 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"