mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
fixed floor recommendation tests
This commit is contained in:
parent
201e8dd829
commit
ed7cb6998b
1 changed files with 18 additions and 5 deletions
|
|
@ -132,11 +132,21 @@ class TestFloorRecommendations:
|
||||||
|
|
||||||
assert types == {"solid_floor_insulation"}
|
assert types == {"solid_floor_insulation"}
|
||||||
|
|
||||||
assert len(recommender.recommendations) == 3
|
assert len(recommender.recommendations) == 1
|
||||||
assert recommender.recommendations[2]["total"] == 14604.660000000002
|
assert (
|
||||||
assert recommender.recommendations[2]["new_u_value"] == 0.21
|
recommender.recommendations[0]["description"] ==
|
||||||
assert recommender.recommendations[2]["parts"][0]["depth"] == 75
|
'Install 75mm Kingspan Thermafloor TF70 High Performance Rigid Floor '
|
||||||
assert recommender.recommendations[2]["parts"][0]["depth"] == 75
|
'Insulation insulation on solid floor'
|
||||||
|
)
|
||||||
|
|
||||||
|
assert recommender.recommendations[0]["new_u_value"] == 0.21
|
||||||
|
assert recommender.recommendations[0]["simulation_config"] == {
|
||||||
|
'floor_is_assumed_ending': False, 'floor_insulation_thickness_ending': 'average',
|
||||||
|
'floor_thermal_transmittance_ending': 0.685593
|
||||||
|
}
|
||||||
|
assert recommender.recommendations[0]["description_simulation"] == {
|
||||||
|
'floor-description': 'Solid, insulated'
|
||||||
|
}
|
||||||
|
|
||||||
def test_another_dwelling_below(self, input_properties):
|
def test_another_dwelling_below(self, input_properties):
|
||||||
"""
|
"""
|
||||||
|
|
@ -172,6 +182,7 @@ class TestFloorRecommendations:
|
||||||
input_property.set_floor_type()
|
input_property.set_floor_type()
|
||||||
input_property.floor_area = 100
|
input_property.floor_area = 100
|
||||||
input_property.number_of_floors = 1
|
input_property.number_of_floors = 1
|
||||||
|
input_property.already_installed = []
|
||||||
|
|
||||||
recommender = FloorRecommendations(
|
recommender = FloorRecommendations(
|
||||||
property_instance=input_property,
|
property_instance=input_property,
|
||||||
|
|
@ -203,6 +214,7 @@ class TestFloorRecommendations:
|
||||||
input_property2.set_floor_type()
|
input_property2.set_floor_type()
|
||||||
input_property2.insulation_floor_area = 100
|
input_property2.insulation_floor_area = 100
|
||||||
input_property2.number_of_floors = 1
|
input_property2.number_of_floors = 1
|
||||||
|
input_property2.already_installed = []
|
||||||
|
|
||||||
recommender2 = FloorRecommendations(
|
recommender2 = FloorRecommendations(
|
||||||
property_instance=input_property2,
|
property_instance=input_property2,
|
||||||
|
|
@ -235,6 +247,7 @@ class TestFloorRecommendations:
|
||||||
input_property3.set_floor_type()
|
input_property3.set_floor_type()
|
||||||
input_property3.insulation_floor_area = 100
|
input_property3.insulation_floor_area = 100
|
||||||
input_property3.number_of_floors = 1
|
input_property3.number_of_floors = 1
|
||||||
|
input_property3.already_installed = []
|
||||||
|
|
||||||
recommender3 = FloorRecommendations(
|
recommender3 = FloorRecommendations(
|
||||||
property_instance=input_property3,
|
property_instance=input_property3,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue