Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 20, 2024
1 parent 8c4a56f commit af1489c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/build_tests/mapper_tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
from tests.unit.helpers.utils import CORE_NAMESPACE


try:
from linkml_runtime.utils.schemaview import SchemaView # noqa: F401
REQUIREMENTS_INSTALLED = True
except ImportError:
REQUIREMENTS_INSTALLED = False

# TODO: test build of extended group/dataset that modifies an attribute dtype (commented out below), shape, value, etc.
# by restriction. also check that attributes cannot be deleted or scope expanded.
# TODO: test build of extended dataset that modifies shape by restriction.
Expand Down Expand Up @@ -555,6 +561,10 @@ class TestUnwrapTermSetWrapperBuild(TestCase):
"""
Test the unwrapping of TermSetWrapper on regular datasets within build.
"""
def setUp(self):
if not REQUIREMENTS_INSTALLED:
self.skipTest("optional LinkML module is not installed")

def test_unwrap(self):
manager = BuildManager(get_type_map())
terms = TermSet(term_schema_path='tests/unit/example_test_term_set.yaml')
Expand Down

0 comments on commit af1489c

Please sign in to comment.