Skip to content

Commit

Permalink
Merge pull request #141 from linkml/made-schemaview-test-less-rigid
Browse files Browse the repository at this point in the history
make schemaview test less rigid in class uri test. Some forthcoming schema changes involve skosxl classes
  • Loading branch information
cmungall authored Mar 2, 2022
2 parents 65d71e5 + 56a3fba commit 63f31fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_utils/test_schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,14 @@ def test_metamodel_in_schemaview(self):
assert tn not in view.all_types(imports=False)
for cn, c in view.all_classes().items():
uri = view.get_uri(cn, expand=True)
print(f'{cn}: {c.class_uri} // {uri}')
#print(f'{cn}: {c.class_uri} // {uri}')
self.assertIsNotNone(uri)
self.assertIn('https://w3id.org/linkml/', uri)
if cn != 'structured_alias':
self.assertIn('https://w3id.org/linkml/', uri)
induced_slots = view.class_induced_slots(cn)
for s in induced_slots:
exp_slot_uri = view.get_uri(s, expand=True)
print(f' {cn}: {s.name} {s.alias} {s.slot_uri} // {exp_slot_uri}')
#print(f' {cn}: {s.name} {s.alias} {s.slot_uri} // {exp_slot_uri}')
self.assertIsNotNone(exp_slot_uri)


Expand Down

0 comments on commit 63f31fa

Please sign in to comment.