Skip to content

Commit

Permalink
Fix unit tests with invalid test data
Browse files Browse the repository at this point in the history
* These unit tests will begin to fail after the update to the hdmf
  validator that increase validation coverage
* Ref hdmf-dev/hdmf#585
* Ref hdmf-dev/hdmf#609
* See discussion: hdmf-dev/hdmf#609 (comment)
  • Loading branch information
dsleiter committed Jun 9, 2021
1 parent c1f4bd7 commit 514ffb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/hdf5/test_ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def make_electrode_table(self):
location='tetrode location',
device=self.dev1)
for i in range(4):
self.table.add_row(x=i, y=2.0, z=3.0, imp=-1.0, location='CA1', filtering='none', group=self.group,
self.table.add_row(x=float(i), y=2.0, z=3.0, imp=-1.0, location='CA1', filtering='none', group=self.group,
group_name='tetrode1')

def setUpContainer(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def test_append(self):
self.assertIs(nwb.processing['test_proc_mod']['LFP'].electrical_series['test_es'].electrodes,
nwb.acquisition['timeseries2'].electrodes)
errors = validate(io)
self.assertTrue(len(errors) == 0)
self.assertEqual(len(errors), 0, errors)


class TestH5DataIO(TestCase):
Expand Down

0 comments on commit 514ffb1

Please sign in to comment.