Skip to content

Commit eefe87a

Browse files
committed
test: move well_rate tutorial test to other format (fix)
1 parent 2602c8c commit eefe87a

File tree

4 files changed

+24
-147
lines changed

4 files changed

+24
-147
lines changed

tests/conftest.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/drogon/test_well_rate.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import pytest
2+
from pathlib import Path
3+
from everest.bin.everest_script import everest_entry
4+
5+
6+
def test_well_rate_simulation(capsys):
7+
"""
8+
Run a modified Drogon well_rate tutorial test case.
9+
"""
10+
11+
config_path = Path("data/drogon/well_rate/everest/model/wellrate_experiment.yml")
12+
config_path.write_text(
13+
config_path.read_text()
14+
.replace("max_batch_num: 10", "max_batch_num: 2")
15+
.replace("realizations: r{{range(100) | list()}}", "realizations: 0-9")
16+
.replace("name: lsf", "name: lsf\n lsf_queue: test")
17+
)
18+
try:
19+
everest_entry([str(config_path), "--skip-prompt"])
20+
except SystemExit as e:
21+
pytest.fail(f"Everest exited with SystemExit: {e}")
22+
23+
captured = capsys.readouterr()
24+
assert "Everest run finished with" in captured.out

tests/helper_methods.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

tests/test_well_rate.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)