Model/recommendations/tests/test_data/floor_uvalue_test_cases.py
2024-01-19 17:11:06 +00:00

62 lines
1.7 KiB
Python

floor_uvalue_test_cases = [
# Test with solid floor, no insulation
{
"floor_type": "solid",
"area": 100,
"perimeter": 40,
"age_band": "A",
"wall_type": "cavity",
"insulation_thickness": None,
"expected": 0.62,
},
# Test with suspended floor, with insulation
{
"floor_type": "suspended",
"area": 120,
"perimeter": 44,
"age_band": "B",
"wall_type": "solid brick",
"insulation_thickness": "50mm",
"expected": 0.33,
},
# Test with invalid floor type
{
"floor_type": "invalid",
"area": 100,
"perimeter": 40,
"age_band": "A",
"wall_type": "cavity",
"insulation_thickness": None,
"expected": ValueError,
},
# 16 Glastonbury road EPR - the EPR has 0.71 due to the property having 320mm wall thickness, but default being 250
{
"floor_type": "suspended",
"area": 34.5,
"perimeter": 16.7,
"age_band": "D",
"wall_type": "cavity",
"insulation_thickness": None,
"expected": 0.72,
},
# 31 Loddon Way - the EPR has 0.5 due to the property having 320mm wall thickness, but default being 250
{
"floor_type": "solid",
"area": 52.08,
"perimeter": 16.2,
"age_band": "E",
"wall_type": "cavity",
"insulation_thickness": None,
"expected": 0.52,
},
# 62 Pearmain Drive
{
"floor_type": "solid",
"area": 38.64,
"perimeter": 18.1,
"age_band": "E",
"wall_type": "cavity",
"insulation_thickness": None,
"expected": 0.69,
},
]