Skip to content

Commit

Permalink
updated central and hybrid ghp tests to reflect new ghx defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
atpham88 authored and Bill-Becker committed Dec 26, 2024
1 parent 4a992f9 commit 45d4264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reoptjl/test/test_job_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_hybridghp(self):
r = json.loads(resp.content)

# calculated_ghx_residual_value 117065.83
self.assertAlmostEqual(r["outputs"]["GHP"]["ghx_residual_value_present_value"], 117065.83, delta=500)
self.assertAlmostEqual(r["outputs"]["GHP"]["ghx_residual_value_present_value"], 127016.435, delta=500)

def test_centralghp(self):
post_file = os.path.join('reoptjl', 'test', 'posts', 'central_plant_ghp.json')
Expand All @@ -311,4 +311,4 @@ def test_centralghp(self):
resp = self.api_client.get(f'/v3/job/{run_uuid}/results')
r = json.loads(resp.content)

self.assertAlmostEqual(r["outputs"]["Financial"]["lifecycle_capital_costs"], 1046066.8, delta=1000)
self.assertAlmostEqual(r["outputs"]["Financial"]["lifecycle_capital_costs"], 1031109.4092, delta=1000)

0 comments on commit 45d4264

Please sign in to comment.