Skip to content

Commit 989efeb

Browse files
Assert AddOn Electricity/Heat are not supported (for now)
1 parent e6224d9 commit 989efeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/geophires_x_tests/test_economics_sam.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,18 @@ def test_add_ons(self):
601601
add_ons_result.result['OPERATING AND MAINTENANCE COSTS (M$/yr)']['Total Add-on OPEX']['value'], 0
602602
)
603603

604+
with self.assertRaises(RuntimeError, msg='AddOn Electricity is not supported for SAM Economic Models'):
605+
self._get_result(
606+
{'Do AddOn Calculations': True, 'AddOn Electricity Gained 1': 100},
607+
file_path=self._get_test_file_path('egs-sam-em-add-ons.txt'),
608+
)
609+
610+
with self.assertRaises(RuntimeError, msg='AddOn Heat is not supported for SAM Economic Models'):
611+
self._get_result(
612+
{'Do AddOn Calculations': True, 'AddOn Heat Gained 1': 100},
613+
file_path=self._get_test_file_path('egs-sam-em-add-ons.txt'),
614+
)
615+
604616
@staticmethod
605617
def _new_model(input_file: Path, additional_params: dict[str, Any] | None = None, read_and_calculate=True) -> Model:
606618
if additional_params is not None:

0 commit comments

Comments
 (0)