Skip to content

Commit

Permalink
Merge 7eabccb into 48e8bab
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Jun 28, 2022
2 parents 48e8bab + 7eabccb commit 7a53613
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_utils/test_schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_schemaview(self):
for sn, s in view.all_slots().items():
logging.info(f'SN = {sn} RANGE={s.range}')
self.assertEqual('https://w3id.org/linkml/tests/kitchen_sink', s.from_schema)
# range should always be populated: See https://github.com/linkml/linkml/issues/733
rng = view.induced_slot(sn).range
self.assertIsNotNone(rng)
# this section is mostly for debugging
for cn in all_cls.keys():
c = view.get_class(cn)
Expand All @@ -95,6 +98,9 @@ def test_schemaview(self):
logging.debug(f' SLOT {sn} R: {slot.range} U: {view.get_uri(sn)} ANCS: {view.slot_ancestors(sn)}')
induced_slot = view.induced_slot(sn, cn)
logging.debug(f' INDUCED {sn}={induced_slot}')
# range should always be populated: See https://github.com/linkml/linkml/issues/733
self.assertIsNotNone(induced_slot.range)


logging.debug(f'ALL = {view.all_elements().keys()}')

Expand Down

0 comments on commit 7a53613

Please sign in to comment.