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

Fix test when other plugins could be installed #9723

Merged
merged 1 commit into from
Jan 14, 2025
Merged
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
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
@@ -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}}
)