Skip to content

Commit 80de4c6

Browse files
authored
Merge pull request #136 from ecmwf/bugfix/less-tests
Skipping long tests.
2 parents 3ebea24 + 3ffbbff commit 80de4c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/xarray/test_samples.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# nor does it submit to any jurisdiction.
99

1010

11+
import os
12+
1113
import pytest
1214
import requests
1315
import xarray as xr
@@ -50,6 +52,9 @@ def _test_samples(n, check_skip=True):
5052

5153

5254
@pytest.mark.parametrize("n", SAMPLES)
55+
# it would be nice to use a @pytest.mark.slow and configure this globally
56+
# this could be done when refactoring the tests, and setting up canary/nightly builds
57+
@pytest.mark.skipif(not os.environ.get("SLOW_TESTS"), reason="No SLOW_TESTS env var")
5358
def test_samples(n):
5459
_test_samples(n)
5560

0 commit comments

Comments
 (0)