Skip to content

Commit

Permalink
termset tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Sep 19, 2023
1 parent 5bf83de commit 4f5d833
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/unit/test_term_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,24 @@ def test_validate_error(self):
field_name='data'))

def test_wrapper_validate_attribute(self):
pass
col1 = VectorData(
name='Species_1',
description=TermSetWrapper(value='Homo sapiens',
field_name='description',
termset=self.termset),
data=['Human']
)
self.assertTrue(isinstance(col1.description, TermSetWrapper))

def test_wrapper_validate_dataset(self):
pass
col1 = VectorData(
name='Species_1',
description='...',
data=TermSetWrapper(value=['Homo sapiens'],
field_name='data',
termset=self.termset)
)
self.assertTrue(isinstance(col1.data, TermSetWrapper))

def test_wrapper_append(self):
data_obj = VectorData(name='species', description='...', data=self.wrapped_list)
Expand Down

0 comments on commit 4f5d833

Please sign in to comment.