diff --git a/reoptjl/test/test_http_endpoints.py b/reoptjl/test/test_http_endpoints.py index 619d6dd97..d844fd513 100644 --- a/reoptjl/test/test_http_endpoints.py +++ b/reoptjl/test/test_http_endpoints.py @@ -380,7 +380,8 @@ def test_default_existing_chiller_cop(self): def test_get_ashp_defaults(self): inputs_dict = { - "load_served": "SpaceHeating" + "load_served": "SpaceHeating", + "force_into_system": "true" } # Call to the django view endpoint /get_existing_chiller_default_cop which calls the http.jl endpoint @@ -388,9 +389,12 @@ def test_get_ashp_defaults(self): view_response = json.loads(resp.content) self.assertEqual(view_response["installed_cost_per_ton"], 2250) + self.assertEqual(view_response["om_cost_per_ton"], 0.0) + self.assertEqual(view_response["sizing_factor"], 1.1) inputs_dict = { - "load_served": "DomesticHotWater" + "load_served": "DomesticHotWater", + "force_into_system": "false" } # Call to the django view endpoint /get_existing_chiller_default_cop which calls the http.jl endpoint @@ -398,5 +402,6 @@ def test_get_ashp_defaults(self): view_response = json.loads(resp.content) self.assertNotIn("cooling_cf_reference", view_response.keys()) + self.assertEqual(view_response["sizing_factor"], 1.0)