We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_materialize_nonscalar_slot_usage()
tests/test_utils/test_schemaview.py
1 parent 929e147 commit 0f263b9Copy full SHA for 0f263b9
tests/test_utils/test_schemaview.py
@@ -948,6 +948,14 @@ def test_is_inlined(self):
948
self.assertEqual(actual_result, expected_result)
949
950
def test_materialize_nonscalar_slot_usage(self):
951
+ """
952
+ ``slot_usage`` overrides values in the base slot definition without
953
+ clobbering unrelated, nonscalar values.
954
+
955
+ See:
956
+ - https://github.com/linkml/linkml/issues/2224
957
+ - https://github.com/linkml/linkml-runtime/pull/335
958
959
schema_path = os.path.join(INPUT_DIR, "DJ_controller_schema.yaml")
960
sv = SchemaView(schema_path)
961
cls = sv.induced_class("DJController")
0 commit comments