Skip to content

Commit

Permalink
Fix test when other plugins could be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Jan 14, 2025
1 parent 735ea0e commit ef17d90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/everest/test_detached.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import os
import stat
from pathlib import Path
from unittest.mock import patch
from unittest.mock import MagicMock, patch

import pytest
import requests

import everest
from ert.config import ErtConfig
from ert.config.queue_config import (
LocalQueueOptions,
LsfQueueOptions,
SlurmQueueOptions,
TorqueQueueOptions,
activate_script,
)
from ert.scheduler.event import FinishedEvent
from everest.config import EverestConfig, InstallJobConfig
Expand Down Expand Up @@ -283,6 +285,11 @@ def test_generate_queue_options_no_config():
def test_generate_queue_options_use_simulator_values(
queue_options, expected_result, monkeypatch
):
monkeypatch.setattr(
everest.config.server_config.ErtPluginManager,
"activate_script",
MagicMock(return_value=activate_script()),
)
config = EverestConfig.with_defaults(
**{"simulator": {"queue_system": queue_options}}
)
Expand Down

0 comments on commit ef17d90

Please sign in to comment.