Skip to content

Commit c5fb5f2

Browse files
Unit test Total CAPEX in SAM-EM result summary
1 parent 7f2a5b4 commit c5fb5f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/geophires_x_client_tests/test_geophires_x_result.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,19 @@ def test_get_sam_cash_flow_row_name_unit_split(self) -> None:
1616
actual = GeophiresXResult._get_sam_cash_flow_row_name_unit_split(case[0])
1717
self.assertListEqual(actual, case[1])
1818

19-
def test_reservoir_volume_calculation_note(self):
19+
def test_reservoir_volume_calculation_note(self) -> None:
2020
r: GeophiresXResult = GeophiresXResult(self._get_test_file_path('../examples/example2.out'))
2121
field_name = 'Reservoir volume calculation note'
2222
self.assertIn(field_name, r.result['RESERVOIR PARAMETERS'])
2323
self.assertEqual(
2424
r.result['RESERVOIR PARAMETERS'][field_name],
2525
'Number of fractures calculated with reservoir volume and fracture separation as input',
2626
)
27+
28+
def test_sam_econ_model_capex_in_summary(self) -> None:
29+
r: GeophiresXResult = GeophiresXResult(self._get_test_file_path('../examples/example_SAM-single-owner-PPA.out'))
30+
field_name = 'Total CAPEX'
31+
self.assertIn(field_name, r.result['SUMMARY OF RESULTS'])
32+
self.assertIn('value', r.result['SUMMARY OF RESULTS'][field_name])
33+
self.assertGreater(r.result['SUMMARY OF RESULTS'][field_name]['value'], 1)
34+
self.assertEqual(r.result['SUMMARY OF RESULTS'][field_name]['unit'], 'MUSD')

0 commit comments

Comments
 (0)