Skip to content

Commit

Permalink
Unit test for NREL#266 (NREL#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Jul 25, 2024
1 parent 01d3a2c commit fd3141f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_geophires_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,20 @@ def test_disabled_currency_conversion_exceptions(self):
)
self.assertIn('You gave MEUR', e_msg)
self.assertIn('https://github.com/NREL/GEOPHIRES-X/issues/236', e_msg)

def test_project_red_larger_fractures(self):
result = GeophiresXClient().get_geophires_result(
GeophiresInputParameters(
from_file_path=self._get_test_file_path(Path('examples/Fervo_Norbeck_Latimer_2023.txt')),
params={
'Fracture Height': 320,
'Fracture Width': 320,
},
)
)

self.assertEqual(result.result['RESERVOIR PARAMETERS']['Well separation: fracture height']['value'], 320.0)
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Well separation: fracture height']['unit'], 'meter')

self.assertEqual(result.result['RESERVOIR PARAMETERS']['Fracture width']['value'], 320.0)
self.assertEqual(result.result['RESERVOIR PARAMETERS']['Fracture width']['unit'], 'meter')

0 comments on commit fd3141f

Please sign in to comment.