From c84f604f9fdd704e863e4994a8c453f928c462e0 Mon Sep 17 00:00:00 2001 From: veenstrajelmer <60435591+veenstrajelmer@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:42:35 +0200 Subject: [PATCH] add timeout to other era5 tests --- tests/test_modelbuilder.py | 2 ++ tests/test_xarray_helpers.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_modelbuilder.py b/tests/test_modelbuilder.py index 7c7b32c6e..b909fad4a 100644 --- a/tests/test_modelbuilder.py +++ b/tests/test_modelbuilder.py @@ -188,6 +188,8 @@ def test_make_paths_relative(tmp_path): @pytest.mark.unittest +@pytest.mark.requiressecrets +@pytest.mark.timeout(60) # useful since CDS downloads are terribly slow sometimes, so skip in that case def test_preprocess_merge_meteofiles_era5_unsupported_varlist(file_nc_era5_pattern, tmp_path): ext_old = None # this won't be reached, so not relevant what to supply date_min = '2010-01-31' diff --git a/tests/test_xarray_helpers.py b/tests/test_xarray_helpers.py index 8966ca07a..2fda86e9b 100644 --- a/tests/test_xarray_helpers.py +++ b/tests/test_xarray_helpers.py @@ -12,8 +12,9 @@ #TODO: many xarray_helpers tests are still in test_dfm_tools.py -@pytest.mark.requiressecrets @pytest.mark.unittest +@pytest.mark.requiressecrets +@pytest.mark.timeout(60) # useful since CDS downloads are terribly slow sometimes, so skip in that case def test_merge_meteofiles(file_nc_era5_pattern): # file_nc_era5_pattern comes from file_nc_era5_pattern() in conftest.py ds = dfmt.merge_meteofiles(file_nc=file_nc_era5_pattern,