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 fc72629 commit 0dbdeb1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/unit/build_tests/mapper_tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,23 +557,6 @@ def test_build_refined_dtype_convert(self):
self.assertEqual(builder.datasets['my_bar'].data.dtype, np.int64)


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')
build = manager.build(VectorData(name='test_data',
description='description',
data=TermSetWrapper(value=['Homo sapiens'], termset= terms)))

self.assertEqual(build.data, ['Homo sapiens'])

class TestBuildDatasetNotRefinedDtype(BuildDatasetExtAttrsMixin, TestCase):
"""
If the spec defines a dataset data_type A (BarData) using 'data_type_def' and defines another data_type B
Expand Down

0 comments on commit 0dbdeb1

Please sign in to comment.