diff --git a/tests/integration/esgf/test_search_download.py b/tests/integration/esgf/test_search_download.py index 32650c459b..1b53aab876 100644 --- a/tests/integration/esgf/test_search_download.py +++ b/tests/integration/esgf/test_search_download.py @@ -3,6 +3,7 @@ from pathlib import Path import pytest +import requests import yaml from pyesgf.search.results import FileResult @@ -128,6 +129,7 @@ def test_mock_search(variable, mocker): ] +@pytest.mark.xfail(raises=requests.exceptions.HTTPError, run=True) def test_real_search(): """Test a real search for a single file.""" variable = { diff --git a/tests/integration/test_recipe.py b/tests/integration/test_recipe.py index c88bf9bdb3..f6ebd063df 100644 --- a/tests/integration/test_recipe.py +++ b/tests/integration/test_recipe.py @@ -8,6 +8,7 @@ import iris import pytest +import requests import yaml from nested_lookup import get_occurrence_of_value, nested_update from PIL import Image @@ -1054,6 +1055,7 @@ def test_update_timerange_no_files_online(config_user): esmvalcore._recipe._update_timerange(variable, config_user) +@pytest.mark.xfail(raises=requests.exceptions.HTTPError, run=True) def test_update_timerange_no_files_offline(config_user): variable = { 'alias': 'CMIP6',