Model/recommendations/tests/test_data/floor_uvalue_test_cases.py
2023-09-22 23:02:25 +01:00

32 lines
806 B
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,
},
]