linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
22 stars 21 forks source link

remove slot name redundancy in get_slots_by_enum method #294

Closed sierra-moxon closed 6 months ago

sierra-moxon commented 6 months ago

to avoid doc displays like this: https://biolink.github.io/biolink-model/ChemicalOrGeneOrGeneProductFormOrVariantEnum/ (Slots section)

While I was in there, I also converted the tests associated with this method to pytest and added the schema as a fixture.

codecov[bot] commented 6 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (a39fd65) 62.12% compared to head (801973d) 61.99%. Report is 1 commits behind head on main.

Files Patch % Lines
linkml_runtime/utils/schemaview.py 0.00% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #294 +/- ## ========================================== - Coverage 62.12% 61.99% -0.13% ========================================== Files 63 63 Lines 8477 8480 +3 Branches 2175 2176 +1 ========================================== - Hits 5266 5257 -9 - Misses 2601 2612 +11 - Partials 610 611 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.