From 0f1ad40dc51872184945da9be2674832506615c5 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Sun, 25 Aug 2024 12:10:38 +0200 Subject: [PATCH] move tests back to repo root again --- pyproject.toml | 4 ++-- {pyprep/tests => tests}/__init__.py | 0 {pyprep/tests => tests}/conftest.py | 0 {pyprep/tests => tests}/test_find_noisy_channels.py | 0 {pyprep/tests => tests}/test_matprep_compare.py | 0 {pyprep/tests => tests}/test_prep_pipeline.py | 0 {pyprep/tests => tests}/test_reference.py | 0 {pyprep/tests => tests}/test_removeTrend.py | 0 {pyprep/tests => tests}/test_utils.py | 0 9 files changed, 2 insertions(+), 2 deletions(-) rename {pyprep/tests => tests}/__init__.py (100%) rename {pyprep/tests => tests}/conftest.py (100%) rename {pyprep/tests => tests}/test_find_noisy_channels.py (100%) rename {pyprep/tests => tests}/test_matprep_compare.py (100%) rename {pyprep/tests => tests}/test_prep_pipeline.py (100%) rename {pyprep/tests => tests}/test_reference.py (100%) rename {pyprep/tests => tests}/test_removeTrend.py (100%) rename {pyprep/tests => tests}/test_utils.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 88c09c8d..2a1fdb9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,7 +91,7 @@ allow-direct-references = true # allow specifying URLs in our dependencies [tool.hatch.build] exclude = [ "/.*", - "**/tests", + "tests/**", "/examples", "/docs", "/.github/**", @@ -111,7 +111,7 @@ omit = ["*tests*"] exclude_lines = ["pragma: no cover", "if 0:", "if __name__ == .__main__.:"] [tool.pytest.ini_options] -addopts = """pyprep/ --cov=pyprep/ --cov-report=xml --cov-config=pyproject.toml --verbose -s""" +addopts = """. --cov=pyprep/ --cov-report=xml --cov-config=pyproject.toml --verbose -s""" filterwarnings = [ ] diff --git a/pyprep/tests/__init__.py b/tests/__init__.py similarity index 100% rename from pyprep/tests/__init__.py rename to tests/__init__.py diff --git a/pyprep/tests/conftest.py b/tests/conftest.py similarity index 100% rename from pyprep/tests/conftest.py rename to tests/conftest.py diff --git a/pyprep/tests/test_find_noisy_channels.py b/tests/test_find_noisy_channels.py similarity index 100% rename from pyprep/tests/test_find_noisy_channels.py rename to tests/test_find_noisy_channels.py diff --git a/pyprep/tests/test_matprep_compare.py b/tests/test_matprep_compare.py similarity index 100% rename from pyprep/tests/test_matprep_compare.py rename to tests/test_matprep_compare.py diff --git a/pyprep/tests/test_prep_pipeline.py b/tests/test_prep_pipeline.py similarity index 100% rename from pyprep/tests/test_prep_pipeline.py rename to tests/test_prep_pipeline.py diff --git a/pyprep/tests/test_reference.py b/tests/test_reference.py similarity index 100% rename from pyprep/tests/test_reference.py rename to tests/test_reference.py diff --git a/pyprep/tests/test_removeTrend.py b/tests/test_removeTrend.py similarity index 100% rename from pyprep/tests/test_removeTrend.py rename to tests/test_removeTrend.py diff --git a/pyprep/tests/test_utils.py b/tests/test_utils.py similarity index 100% rename from pyprep/tests/test_utils.py rename to tests/test_utils.py