Skip to content

Commit ba677c6

Browse files
committed
assertion that ensure that domain_of is not populated in slot_usage
1 parent 0f263b9 commit ba677c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_utils/test_schemaview.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,11 @@ def test_materialize_nonscalar_slot_usage(self):
983983
assert cls.attributes["tempo"].annotations.expected_value.value == "a number between 0 and 200"
984984
assert cls.attributes["tempo"].annotations.preferred_unit.value == "BPM"
985985

986+
assert cls.attributes["tempo"].domain_of == ["DJController"]
987+
# ensure that domain_of is not being populated in slot_usage
988+
# test for https://github.com/linkml/linkml/pull/2262 from upstream linkml
989+
assert cls.slot_usage["tempo"].domain_of == []
990+
986991

987992
if __name__ == '__main__':
988993
unittest.main()

0 commit comments

Comments
 (0)