From 63d64ab62e8c838c61d35b046d5bbfe57bb87b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Tue, 8 Oct 2024 18:36:02 -0400 Subject: [PATCH] MAINT: Move test data files to a dedicated folder inside `test` folder Move test data files to a dedicated folder inside the `test` folder, and edit accordingly the `_datadir` path used across doctests and examples. --- src/eddymotion/conftest.py | 2 +- test/conftest.py | 2 +- {src/eddymotion => test}/data/ds000114_singleshell.bval | 0 {src/eddymotion => test}/data/ds000114_singleshell.bvec | 0 {src/eddymotion => test}/data/ds004737_dsi.bval | 0 {src/eddymotion => test}/data/ds004737_dsi.bvec | 0 {src/eddymotion => test}/data/fileA.nii.gz | 0 {src/eddymotion => test}/data/fileB.nii.gz | 0 {src/eddymotion => test}/data/hcph_multishell.bval | 0 {src/eddymotion => test}/data/hcph_multishell.bvec | 0 {src/eddymotion => test}/data/maskA.nii.gz | 0 11 files changed, 2 insertions(+), 2 deletions(-) rename {src/eddymotion => test}/data/ds000114_singleshell.bval (100%) rename {src/eddymotion => test}/data/ds000114_singleshell.bvec (100%) rename {src/eddymotion => test}/data/ds004737_dsi.bval (100%) rename {src/eddymotion => test}/data/ds004737_dsi.bvec (100%) rename {src/eddymotion => test}/data/fileA.nii.gz (100%) rename {src/eddymotion => test}/data/fileB.nii.gz (100%) rename {src/eddymotion => test}/data/hcph_multishell.bval (100%) rename {src/eddymotion => test}/data/hcph_multishell.bvec (100%) rename {src/eddymotion => test}/data/maskA.nii.gz (100%) diff --git a/src/eddymotion/conftest.py b/src/eddymotion/conftest.py index 72a196c6..a867fef7 100644 --- a/src/eddymotion/conftest.py +++ b/src/eddymotion/conftest.py @@ -33,7 +33,7 @@ test_output_dir = os.getenv("TEST_OUTPUT_DIR") test_workdir = os.getenv("TEST_WORK_DIR") -_datadir = (Path(__file__).parent.parent / "eddymotion" / "data").absolute() +_datadir = (Path(__file__).parent.parent.parent / "test" / "data").absolute() def pytest_report_header(config): diff --git a/test/conftest.py b/test/conftest.py index 12002d02..9d8812d4 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -33,7 +33,7 @@ test_output_dir = os.getenv("TEST_OUTPUT_DIR") test_workdir = os.getenv("TEST_WORK_DIR") -_datadir = (Path(__file__).parent.parent / "src" / "eddymotion" / "data").absolute() +_datadir = (Path(__file__).parent / "data").absolute() def pytest_report_header(config): diff --git a/src/eddymotion/data/ds000114_singleshell.bval b/test/data/ds000114_singleshell.bval similarity index 100% rename from src/eddymotion/data/ds000114_singleshell.bval rename to test/data/ds000114_singleshell.bval diff --git a/src/eddymotion/data/ds000114_singleshell.bvec b/test/data/ds000114_singleshell.bvec similarity index 100% rename from src/eddymotion/data/ds000114_singleshell.bvec rename to test/data/ds000114_singleshell.bvec diff --git a/src/eddymotion/data/ds004737_dsi.bval b/test/data/ds004737_dsi.bval similarity index 100% rename from src/eddymotion/data/ds004737_dsi.bval rename to test/data/ds004737_dsi.bval diff --git a/src/eddymotion/data/ds004737_dsi.bvec b/test/data/ds004737_dsi.bvec similarity index 100% rename from src/eddymotion/data/ds004737_dsi.bvec rename to test/data/ds004737_dsi.bvec diff --git a/src/eddymotion/data/fileA.nii.gz b/test/data/fileA.nii.gz similarity index 100% rename from src/eddymotion/data/fileA.nii.gz rename to test/data/fileA.nii.gz diff --git a/src/eddymotion/data/fileB.nii.gz b/test/data/fileB.nii.gz similarity index 100% rename from src/eddymotion/data/fileB.nii.gz rename to test/data/fileB.nii.gz diff --git a/src/eddymotion/data/hcph_multishell.bval b/test/data/hcph_multishell.bval similarity index 100% rename from src/eddymotion/data/hcph_multishell.bval rename to test/data/hcph_multishell.bval diff --git a/src/eddymotion/data/hcph_multishell.bvec b/test/data/hcph_multishell.bvec similarity index 100% rename from src/eddymotion/data/hcph_multishell.bvec rename to test/data/hcph_multishell.bvec diff --git a/src/eddymotion/data/maskA.nii.gz b/test/data/maskA.nii.gz similarity index 100% rename from src/eddymotion/data/maskA.nii.gz rename to test/data/maskA.nii.gz