Skip to content

Commit 3d6c6d4

Browse files
refactor: remove skip_slow_tests decorator from utils (#199)
## Description Remove the skip_slow_tests decorator as we use pytest markers to mark slow tests in the downstream repos. Requires ecmwf/anemoi-datasets#399 to be merged first ## What problem does this change solve? Make markers and cli for slow tests consistent across the anemoi packages. ## What issue or task does this change relate to? ecmwf/anemoi-core#257 ***As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/*** By opening this pull request, I affirm that all authors agree to the [Contributor License Agreement.](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md)
1 parent 104d927 commit 3d6c6d4

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/anemoi/utils/testing.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,6 @@ def _missing_packages(*names: str) -> list[str]:
240240
return missing
241241

242242

243-
def _run_slow_tests() -> bool:
244-
"""Check if the SLOW_TESTS environment variable is set.
245-
246-
Returns
247-
-------
248-
bool
249-
True if the SLOW_TESTS environment variable is set, False otherwise.
250-
"""
251-
return bool(int(os.environ.get("SLOW_TESTS", 0)))
252-
253-
254243
@lru_cache(maxsize=None)
255244
def _offline() -> bool:
256245
"""Check if we are offline."""
@@ -265,7 +254,6 @@ def _offline() -> bool:
265254

266255

267256
skip_if_offline = pytest.mark.skipif(_offline(), reason="No internet connection")
268-
skip_slow_tests = pytest.mark.skipif(not _run_slow_tests(), reason="Skipping slow tests")
269257

270258

271259
def skip_missing_packages(*names: str) -> pytest.MarkDecorator:

0 commit comments

Comments
 (0)