Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Nov 26, 2024
1 parent e835a9e commit 91032d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/ert/config/forward_model_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ class ForwardModelStep:
"_ERT_RUNPATH": "<RUNPATH>",
}

def __eq__(self, other):
for attr in vars(self): # noqa: SIM110
if getattr(self, attr) != getattr(other, attr):
return False
return True

@field_validator("private_args", mode="before")
@classmethod
def convert_to_substitutions(cls, v: Dict[str, str]) -> Substitutions:
Expand Down
6 changes: 2 additions & 4 deletions tests/everest/test_res_initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ def build_tutorial_dict(config_dir, output_dir):
("npv_function", "MOCKED_TEST_CASE", "npv_function"),
],
# Defaulted
ErtConfigKeys.QUEUE_SYSTEM: "LOCAL",
ErtConfigKeys.QUEUE_OPTION: [("LOCAL", "MAX_RUNNING", 8)],
ErtConfigKeys.ENSPATH: os.path.join(
os.path.realpath("mocked_test_case"),
"everest_output/simulation_results",
Expand Down Expand Up @@ -241,7 +239,7 @@ def test_snake_everest_to_ert(copy_snake_oil_to_tmp):
"max_runtime": 3600,
"queue_system": {
"name": "torque",
"queue": "permanent_8",
"queue_name": "permanent_8",
"qsub_cmd": "qsub",
"qstat_cmd": "qstat",
"qdel_cmd": "qdel",
Expand Down Expand Up @@ -331,7 +329,7 @@ def test_queue_configuration():
queue_system:
max_running: 3
name: lsf
lsf_queue: mr
queue_name: mr
lsf_resource: span = 1 && select[x86 and GNU/Linux]
""")

Expand Down

0 comments on commit 91032d0

Please sign in to comment.