Skip to content

Commit

Permalink
clean tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 19, 2024
1 parent 3574bd0 commit 207683b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/unit/test_term_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ class ExtensionContainer(Container):
__fields__ = ("description",)

def __init__(self, **kwargs):
description, namespace, type_map = popargs('description', 'namespace', 'type_map', kwargs)
description, namespace = popargs('description', 'namespace', kwargs)
super().__init__(**kwargs)
self.namespace = namespace
self.type_map = type_map
self.type_map = get_type_map()
self.description = description


Expand All @@ -301,7 +301,6 @@ def setUp(self):
if not REQUIREMENTS_INSTALLED:
self.skipTest("optional LinkML module is not installed")
load_termset_config(config_path='tests/unit/hdmf_config.yaml')
self.tm = get_type_map()

def tearDown(self):
unload_termset_config()
Expand All @@ -321,14 +320,12 @@ def test_namespace_warn(self):
with self.assertWarns(Warning):
ExtensionContainer(name='foo',
namespace='foo',
type_map=self.tm,
description='Homo sapiens')

def test_container_type_warn(self):
with self.assertWarns(Warning):
ExtensionContainer(name='foo',
namespace='hdmf-common',
type_map=self.tm,
description='Homo sapiens')

def test_already_wrapped_warn(self):
Expand Down

0 comments on commit 207683b

Please sign in to comment.