Skip to content

Commit 9785819

Browse files
test stimulation costs match expected in documentation and result
1 parent 77da8c0 commit 9785819

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/geophires_x_tests/test_fervo_project_cape_4.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ def test_case_study_documentation(self):
7575
self.assertEqual(3.96, results_in_markdown['Well Drilling and Completion Cost']['value'])
7676
self.assertEqual('MUSD/well', results_in_markdown['Well Drilling and Completion Cost']['unit'])
7777

78+
expected_stim_cost_MUSD_per_well = 4.83
79+
self.assertEqual(
80+
expected_stim_cost_MUSD_per_well, inputs_in_markdown['Reservoir Stimulation Capital Cost per Well']['value']
81+
)
82+
self.assertEqual('MUSD', inputs_in_markdown['Reservoir Stimulation Capital Cost per Well']['unit'])
83+
7884
class _Q(HasQuantity):
7985
def __init__(self, vu: dict[str, Any]):
8086
self.value = vu['value']
@@ -143,6 +149,12 @@ def __init__(self, vu: dict[str, Any]):
143149
inputs_in_markdown['Reservoir Volume']['value'],
144150
)
145151

152+
expected_stim_cost_total_MUSD = expected_stim_cost_MUSD_per_well * num_doublets * 2
153+
self.assertEqual(
154+
expected_stim_cost_total_MUSD,
155+
example_result.result['CAPITAL COSTS (M$)']['Stimulation costs']['value'],
156+
)
157+
146158
def parse_markdown_results_structured(self, markdown_text: str) -> dict:
147159
"""
148160
Parses result values from markdown into a structured dictionary with values and units.

0 commit comments

Comments
 (0)