Skip to content

Commit

Permalink
just bumping version to allow use as a branch import in linkml to tes…
Browse files Browse the repository at this point in the history
…t this fix for jsonschemagen
  • Loading branch information
sierra-moxon committed May 10, 2024
1 parent 9467194 commit 956d2cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "linkml-runtime"
version = "0.0.0"
version = "1.7.6"
description = "Runtime environment for LinkML, the Linked open data modeling language"
authors = [
"Chris Mungall <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_utils/input/kitchen_sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ classes:
is_a: Thing
title: Planned Process
attributes:
has_input:
range: FamilialRelationship
has_input_2:
range: Thing
required: true
Expand Down
3 changes: 2 additions & 1 deletion tests/test_utils/test_schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,12 @@ def check(ancs: List, expected: List):

def test_induced(self):
view = SchemaView(SCHEMA_WITH_IMPORTS)
print(view.get_slot('has_input').range)
assert view.induced_slot('has_input_2', 'Extraction') is not None
assert view.induced_slot('has_input', 'Extraction') is not None
assert not view.get_slot("has_input").required
assert view.induced_slot('has_input', 'Extraction').required
assert view.get_slot("has_input").range == "Thing"
assert view.induced_slot('has_input', 'Extraction').range == ['Person', 'FamilialRelationship']

def test_slot_inheritance(self):
schema = SchemaDefinition(id='test', name='test')
Expand Down

0 comments on commit 956d2cd

Please sign in to comment.