Skip to content

Commit

Permalink
[MNT] Remove legacy testing (#2076)
Browse files Browse the repository at this point in the history
* remove legacy testing

* fix and comment

* fixes

* add to exclude list
  • Loading branch information
MatthewMiddlehurst authored Sep 21, 2024
1 parent c106279 commit f293e9a
Show file tree
Hide file tree
Showing 42 changed files with 646 additions and 3,517 deletions.
88 changes: 0 additions & 88 deletions aeon/anomaly_detection/tests/test_all_anomaly_detectors.py

This file was deleted.

2 changes: 1 addition & 1 deletion aeon/benchmarking/tests/test_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from aeon.classification import DummyClassifier
from aeon.clustering import TimeSeriesKMeans
from aeon.datasets import load_unit_test
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
2 changes: 1 addition & 1 deletion aeon/benchmarking/tests/test_results_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_estimator_results_as_array,
)
from aeon.datasets._data_loaders import CONNECTION_ERRORS
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING

cls = ["HC2", "FreshPRINCE", "InceptionT"]
data = ["Chinatown", "Tools"]
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion aeon/classification/hybrid/tests/test_hc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from aeon.classification.hybrid import HIVECOTEV1, HIVECOTEV2
from aeon.testing.data_generation import make_example_3d_numpy
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(PR_TESTING, reason="slow test, run overnight only")
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_data_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_load_tsc_dataset,
download_dataset,
)
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_data_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
make_example_3d_numpy_list,
make_example_nested_dataframe,
)
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_dataframe_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
load_from_tsfile_to_dataframe,
load_from_ucr_tsv_to_dataframe,
)
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_dataset_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
get_available_tsf_datasets,
get_downloaded_tsf_datasets,
)
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_load_forecasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import aeon
from aeon.datasets import load_forecasting, load_from_tsf_file, load_uschange
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING

_CHECKS = {
"uschange": {
Expand Down
2 changes: 1 addition & 1 deletion aeon/datasets/tests/test_tss_data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
)
from aeon.datasets.tests.test_data_loaders import CONNECTION_ERRORS
from aeon.segmentation import ClaSPSegmenter
from aeon.testing.test_config import PR_TESTING
from aeon.testing.testing_config import PR_TESTING


@pytest.mark.skipif(
Expand Down
77 changes: 0 additions & 77 deletions aeon/segmentation/tests/test_all_segmenters.py

This file was deleted.

8 changes: 5 additions & 3 deletions aeon/testing/estimator_checking/_estimator_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from aeon.testing.estimator_checking._yield_estimator_checks import (
_yield_all_aeon_checks,
)
from aeon.testing.test_config import EXCLUDE_ESTIMATORS, EXCLUDED_TESTS
from aeon.testing.testing_config import EXCLUDE_ESTIMATORS, EXCLUDED_TESTS
from aeon.utils.validation._dependencies import (
_check_estimator_deps,
_check_soft_dependencies,
Expand Down Expand Up @@ -293,7 +293,7 @@ def _should_be_skipped(estimator, check, has_dependencies):
check_name = check.func.__name__ if isinstance(check, partial) else check.__name__

# check estimator dependencies
if not has_dependencies:
if not has_dependencies and "softdep" not in check_name:
return True, "Incompatible dependencies or Python version", check_name

# check aeon exclude lists
Expand Down Expand Up @@ -344,6 +344,8 @@ def _get_check_estimator_ids(obj):
elif hasattr(obj, "get_params"):
with config_context(print_changed_only=True):
s = re.sub(r"\s", "", str(obj))
return re.sub(r"<function[^)]*>", "func", s)
s = re.sub(r"<function[^)]*>", "func", s)
s = re.sub(r"<boundmethodrv[^)]*>", "boundmethod", s)
return s
else:
return obj
Loading

0 comments on commit f293e9a

Please sign in to comment.