Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 14, 2024
1 parent 86ef625 commit cb26e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hdmf/term_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def extend(self, arg):
if isinstance(arg, np.ndarray):
values = arg[self.__field]

Check warning on line 318 in src/hdmf/term_set.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/term_set.py#L318

Added line #L318 was not covered by tests
else:
values = [arg]
values = arg

Check warning on line 320 in src/hdmf/term_set.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/term_set.py#L320

Added line #L320 was not covered by tests
bad_data = []
for item in values:
if not self.termset.validate(term=item):
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/common/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def test_add_ref_compound_data_extend(self):

np.testing.assert_array_equal(compound_vector_data.data, np.vstack((c_data, c_data2)))


@unittest.skipIf(not LINKML_INSTALLED, "optional LinkML module is not installed")
def test_add_ref_wrapped_compound_data_append(self):
c_data = np.array([('Homo sapiens', 24)], dtype=[('species', 'U50'), ('age', 'i4')])
c_data2 = np.array([('Mus musculus', 24)], dtype=[('species', 'U50'), ('age', 'i4')])
Expand All @@ -259,6 +259,7 @@ def test_add_ref_wrapped_compound_data_append(self):

np.testing.assert_array_equal(compound_vector_data.data.data, np.append(c_data, c_data2))

@unittest.skipIf(not LINKML_INSTALLED, "optional LinkML module is not installed")
def test_add_ref_wrapped_compound_data_extend(self):
c_data = np.array([('Homo sapiens', 24)], dtype=[('species', 'U50'), ('age', 'i4')])
c_data2 = np.array([('Mus musculus', 24)], dtype=[('species', 'U50'), ('age', 'i4')])
Expand Down

0 comments on commit cb26e66

Please sign in to comment.