File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ import pytest
2+ from everest .bin .everest_script import everest_entry
3+
4+ def test_control_sensitivities_simulation (capsys ):
5+ """
6+ Run a basic Drogon control_sensitivities optimization test case.
7+ """
8+ try :
9+ everest_entry (["data/drogon/control_sensitivities/everest/model/controlsens_experiment.yml" , "--skip-prompt" ])
10+ except SystemExit as e :
11+ pytest .fail (f"Everest exited with SystemExit: { e } " )
12+
13+ captured = capsys .readouterr ()
14+ assert "Everest run finished with" in captured .out
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+ import pytest
3+ from everest .bin .everest_script import everest_entry
4+
5+ def test_well_swap_simulation (capsys ):
6+ """
7+ Run a basic Drogon well_swap optimization test case.
8+ """
9+
10+ config_path = Path ("data/drogon/well_swap/everest/model/wellswap_experiment.yml" )
11+ config_path .write_text (config_path .read_text ().replace ('max_batch_num: 10' , 'max_batch_num: 2' ))
12+
13+ try :
14+ everest_entry ([str (config_path ), "--skip-prompt" ])
15+ except SystemExit as e :
16+ pytest .fail (f"Everest exited with SystemExit: { e } " )
17+
18+ captured = capsys .readouterr ()
19+ assert "Everest run finished with" in captured .out
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+ import pytest
3+ from everest .bin .everest_script import everest_entry
4+
5+ def test_well_trajectory_simulation (capsys ):
6+ """
7+ Run a basic Drogon well_trajectory optimization test case.
8+ """
9+
10+ config_path = Path ("data/drogon/well_trajectory/everest/model/welltrajectory_experiment.yml" )
11+ config_path .write_text (config_path .read_text ().replace ('max_batch_num: 10' , 'max_batch_num: 2' ))
12+
13+ try :
14+ everest_entry ([str (config_path ), "--skip-prompt" ])
15+ except SystemExit as e :
16+ pytest .fail (f"Everest exited with SystemExit: { e } " )
17+
18+ captured = capsys .readouterr ()
19+ assert "Everest run finished with" in captured .out
You can’t perform that action at this time.
0 commit comments