mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added costs unit test
This commit is contained in:
parent
b81b04a6b8
commit
59c92574a3
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue