Skip to content

Commit

Permalink
name
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 27, 2024
1 parent 67d1c4f commit 6ef126c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tests/unit/test_term_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,14 @@ def test_wrapper_extend_error(self):
with self.assertRaises(ValueError):
data_obj.extend(['bad_data'])

class TestTermSetConfig(TestCase):
class TestTypeConfig(TestCase):
def setUp(self):
if not REQUIREMENTS_INSTALLED:
self.skipTest("optional LinkML module is not installed")

def tearDown(self):
unload_type_config()

def test_get_loaded_config(self):
load_type_config(config_path='tests/unit/hdmf_config.yaml')
loaded_config = get_loaded_config()
config = {'namespaces': {'hdmf-common': {'version': '3.12.2',
'data_types': {'VectorData': {'description': {'termset': 'example_test_term_set.yaml'}},
'VectorIndex': {'data': '...'}}}}}

self.assertEqual(loaded_config, config)

def test_get_loaded_config_error(self):
with self.assertRaises(ValueError):
get_loaded_config()
Expand Down Expand Up @@ -293,7 +284,7 @@ def __init__(self, **kwargs):
self.description = description


class TestTermSetConfigVectorData(TestCase):
class TestGlobalTypeConfig(TestCase):
def setUp(self):
if not REQUIREMENTS_INSTALLED:
self.skipTest("optional LinkML module is not installed")
Expand Down

0 comments on commit 6ef126c

Please sign in to comment.