Skip to content

Commit

Permalink
Remove env variable that was always false
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Dec 13, 2024
1 parent 884e0b0 commit d1ea0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions tests/everest/test_everest_initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
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
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)
Expand Down
2 changes: 0 additions & 2 deletions tests/everest/test_repo_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d1ea0dd

Please sign in to comment.