Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timeout to other era5 tests #976

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions tests/test_modelbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion tests/test_xarray_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading