From 59c92574a3745196ffdd6a52fc39aa0c0fcdcbeb Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 27 Jan 2026 08:46:52 +0000 Subject: [PATCH] added costs unit test --- recommendations/tests/test_costs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recommendations/tests/test_costs.py b/recommendations/tests/test_costs.py index 752caf8c..10a63554 100644 --- a/recommendations/tests/test_costs.py +++ b/recommendations/tests/test_costs.py @@ -236,3 +236,11 @@ class TestCosts: ) assert result['total'] == pytest.approx(expected_cost, rel=0.01) + + def test_sloping_ceiling_insulation(self): + mock_property = Mock() + mock_property.data = {"county": "Mansfield"} + costs = Costs(mock_property) + res = costs.sloping_ceiling_insulation(insulation_roof_area=64.085) + assert res["total"] == 5238.713924924947 + assert res["contingency"] == 1362.0656204804861