Skip to content

Commit 0f263b9

Browse files
docstring for test_materialize_nonscalar_slot_usage() in tests/test_utils/test_schemaview.py
Co-authored-by: Jonny Saunders <[email protected]>
1 parent 929e147 commit 0f263b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_utils/test_schemaview.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,14 @@ def test_is_inlined(self):
948948
self.assertEqual(actual_result, expected_result)
949949

950950
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+
"""
951959
schema_path = os.path.join(INPUT_DIR, "DJ_controller_schema.yaml")
952960
sv = SchemaView(schema_path)
953961
cls = sv.induced_class("DJController")

0 commit comments

Comments
 (0)