Skip to content

Commit 4ddaf54

Browse files
author
Cody Baker
committed
just switch to run
1 parent 5e37f9a commit 4ddaf54

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

tests/unit_tests/test_tables.py

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import platform
22
import json
3-
import pytest
43
from unittest import TestCase
54
from packaging import version
65

@@ -229,28 +228,34 @@ def test_check_single_row_pass():
229228

230229

231230
def test_check_single_row_ignore_units():
232-
table = Units(
233-
name="Units",
234-
) # default name when building through nwbfile
231+
table = Units(name="Units",) # default name when building through nwbfile
235232
table.add_unit(spike_times=[1, 2, 3])
236233
assert check_single_row(table=table) is None
237234

238235

239-
@pytest.mark.skipif(get_package_version(name="pynwb") >= version.Version("2.1.0")) # TODO: remove skip when fixed
240236
def test_check_single_row_ignore_electrodes():
241-
table = ElectrodeTable(
242-
name="electrodes",
243-
) # default name when building through nwbfile
244-
table.add_row(
245-
x=np.nan,
246-
y=np.nan,
247-
z=np.nan,
248-
imp=np.nan,
249-
location="unknown",
250-
filtering="unknown",
251-
group=ElectrodeGroup(name="test_group", description="", device=Device(name="test_device"), location="unknown"),
252-
group_name="test_group",
253-
)
237+
table = ElectrodeTable(name="electrodes",) # default name when building through nwbfile
238+
if get_package_version(name="pynwb") >= version.Version("2.1.0"):
239+
table.add_row(
240+
location="unknown",
241+
group=ElectrodeGroup(
242+
name="test_group", description="", device=Device(name="test_device"), location="unknown"
243+
),
244+
group_name="test_group",
245+
)
246+
else:
247+
table.add_row(
248+
x=np.nan,
249+
y=np.nan,
250+
z=np.nan,
251+
imp=np.nan,
252+
location="unknown",
253+
filtering="unknown",
254+
group=ElectrodeGroup(
255+
name="test_group", description="", device=Device(name="test_device"), location="unknown"
256+
),
257+
group_name="test_group",
258+
)
254259
assert check_single_row(table=table) is None
255260

256261

0 commit comments

Comments
 (0)