Skip to content

Commit fd3141f

Browse files
Unit test for NREL#266 (NREL#264)
1 parent 01d3a2c commit fd3141f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test_geophires_x.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,20 @@ def test_disabled_currency_conversion_exceptions(self):
456456
)
457457
self.assertIn('You gave MEUR', e_msg)
458458
self.assertIn('https://github.com/NREL/GEOPHIRES-X/issues/236', e_msg)
459+
460+
def test_project_red_larger_fractures(self):
461+
result = GeophiresXClient().get_geophires_result(
462+
GeophiresInputParameters(
463+
from_file_path=self._get_test_file_path(Path('examples/Fervo_Norbeck_Latimer_2023.txt')),
464+
params={
465+
'Fracture Height': 320,
466+
'Fracture Width': 320,
467+
},
468+
)
469+
)
470+
471+
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Well separation: fracture height']['value'], 320.0)
472+
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Well separation: fracture height']['unit'], 'meter')
473+
474+
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Fracture width']['value'], 320.0)
475+
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Fracture width']['unit'], 'meter')

0 commit comments

Comments
 (0)