Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/anemoi/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,6 @@ def _missing_packages(*names: str) -> list[str]:
return missing


def _run_slow_tests() -> bool:
"""Check if the SLOW_TESTS environment variable is set.

Returns
-------
bool
True if the SLOW_TESTS environment variable is set, False otherwise.
"""
return bool(int(os.environ.get("SLOW_TESTS", 0)))


@lru_cache(maxsize=None)
def _offline() -> bool:
"""Check if we are offline."""
Expand All @@ -265,7 +254,6 @@ def _offline() -> bool:


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


def skip_missing_packages(*names: str) -> pytest.MarkDecorator:
Expand Down
Loading