diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_io/__init__.py b/tests/test_io/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_io/test_3brain.py b/tests/test_io/test_3brain.py index 1128a232..84a7d605 100644 --- a/tests/test_io/test_3brain.py +++ b/tests/test_io/test_3brain.py @@ -6,7 +6,7 @@ from probeinterface import read_3brain -from probeinterface.testing import validate_probe_dict +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "3brain" diff --git a/tests/test_io/test_imro.py b/tests/test_io/test_imro.py index a579047c..fbb61619 100644 --- a/tests/test_io/test_imro.py +++ b/tests/test_io/test_imro.py @@ -5,7 +5,8 @@ import numpy as np from probeinterface import read_imro, write_imro -from probeinterface.testing import validate_probe_dict + +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "imro" imro_files = glob.glob(str(data_path / "*.imro")) diff --git a/tests/test_io/test_maxwell.py b/tests/test_io/test_maxwell.py index 664b5d60..df5ef088 100644 --- a/tests/test_io/test_maxwell.py +++ b/tests/test_io/test_maxwell.py @@ -4,7 +4,8 @@ import pytest from probeinterface import read_maxwell -from probeinterface.testing import validate_probe_dict + +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "maxwell" diff --git a/tests/test_io/test_openephys.py b/tests/test_io/test_openephys.py index bb90a71f..c6b683f6 100644 --- a/tests/test_io/test_openephys.py +++ b/tests/test_io/test_openephys.py @@ -6,7 +6,8 @@ import pytest from probeinterface import read_openephys -from probeinterface.testing import validate_probe_dict + +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "openephys" diff --git a/tests/test_io/test_spikegadgets.py b/tests/test_io/test_spikegadgets.py index 6cff88d6..f0d0a90a 100644 --- a/tests/test_io/test_spikegadgets.py +++ b/tests/test_io/test_spikegadgets.py @@ -3,7 +3,8 @@ from probeinterface import read_spikegadgets from probeinterface.io import parse_spikegadgets_header -from probeinterface.testing import validate_probe_dict + +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "spikegadgets" diff --git a/tests/test_io/test_spikeglx.py b/tests/test_io/test_spikeglx.py index 6680ab8f..48df60f9 100644 --- a/tests/test_io/test_spikeglx.py +++ b/tests/test_io/test_spikeglx.py @@ -10,7 +10,8 @@ get_saved_channel_indices_from_spikeglx_meta, parse_spikeglx_snsGeomMap, ) -from probeinterface.testing import validate_probe_dict + +from ..utilities import validate_probe_dict data_path = Path(__file__).absolute().parent.parent / "data" / "spikeglx" meta_files = glob.glob(str(data_path / "*.meta")) diff --git a/src/probeinterface/testing.py b/tests/utilities.py similarity index 77% rename from src/probeinterface/testing.py rename to tests/utilities.py index 1b3131cc..d1c69401 100644 --- a/src/probeinterface/testing.py +++ b/tests/utilities.py @@ -4,7 +4,7 @@ from probeinterface import __version__ as version import jsonschema -json_schema_file = Path(__file__).absolute().parent.parent.parent / "resources" / "probe.json.schema" +json_schema_file = Path(__file__).absolute().parent.parent / "resources" / "probe.json.schema" schema = json.load(open(json_schema_file, "r"))