From 514ffb19931aa40bef1374a166b71f1205319948 Mon Sep 17 00:00:00 2001 From: Darin Erat Sleiter Date: Wed, 9 Jun 2021 16:38:24 +1000 Subject: [PATCH] Fix unit tests with invalid test data * These unit tests will begin to fail after the update to the hdmf validator that increase validation coverage * Ref https://github.com/hdmf-dev/hdmf/issues/585 * Ref https://github.com/hdmf-dev/hdmf/pull/609 * See discussion: https://github.com/hdmf-dev/hdmf/pull/609#issuecomment-857418760 --- tests/integration/hdf5/test_ecephys.py | 2 +- tests/integration/test_io.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/hdf5/test_ecephys.py b/tests/integration/hdf5/test_ecephys.py index dfd1376c6..0ea69c233 100644 --- a/tests/integration/hdf5/test_ecephys.py +++ b/tests/integration/hdf5/test_ecephys.py @@ -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): diff --git a/tests/integration/test_io.py b/tests/integration/test_io.py index 6877ba04f..e3cc87f94 100644 --- a/tests/integration/test_io.py +++ b/tests/integration/test_io.py @@ -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):