diff --git a/tests/everest/test_everest_initialization.py b/tests/everest/test_everest_initialization.py index b46967637f1..b1860415547 100644 --- a/tests/everest/test_everest_initialization.py +++ b/tests/everest/test_everest_initialization.py @@ -5,13 +5,11 @@ from ert.run_models.everest_run_model import EverestRunModel from everest.config import EverestConfig -NO_PROJECT_RES = ( - os.environ.get("NO_PROJECT_RES", False), - "Skipping tests when no access to /project/res", -) +from .utils import skipif_no_everest_models -@pytest.mark.skipif(NO_PROJECT_RES[0], reason=NO_PROJECT_RES[1]) +@skipif_no_everest_models +@pytest.mark.requires_eclipse def test_init_no_project_res(copy_egg_test_data_to_tmp): config_file = os.path.join("everest", "model", "config.yml") config = EverestConfig.load_file(config_file) diff --git a/tests/everest/test_repo_configs.py b/tests/everest/test_repo_configs.py index 57c8ddb45a8..036b1d07c55 100644 --- a/tests/everest/test_repo_configs.py +++ b/tests/everest/test_repo_configs.py @@ -40,8 +40,6 @@ def is_config(fn): config_files = [fn for cdir in config_folders for fn in _get_all_files(cdir)] config_files = filter(is_config, config_files) - if os.environ.get("NO_PROJECT_RES", False): - config_files = [f for f in config_files if "examples/egg" not in f] try: get_ropt_plugin_manager().get_plugin("optimizer", "scipy/default") except ROptConfigError: