From bbefbea8f0ef2239fcac59e8245dcbe6fa5affcf Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 8 Oct 2024 18:51:16 +0100 Subject: [PATCH] added missing file --- .../tests/test_data/roof_uvalue_test_cases.py | 355 ++++++++++++++++++ 1 file changed, 355 insertions(+) create mode 100644 recommendations/tests/test_data/roof_uvalue_test_cases.py diff --git a/recommendations/tests/test_data/roof_uvalue_test_cases.py b/recommendations/tests/test_data/roof_uvalue_test_cases.py new file mode 100644 index 00000000..1f230cc8 --- /dev/null +++ b/recommendations/tests/test_data/roof_uvalue_test_cases.py @@ -0,0 +1,355 @@ +roof_uvalue_test_cases = [ + # Pitched roof + { + 'insulation_thickness': '0', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 2.3, + }, + { + 'insulation_thickness': '12', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 1.5 + }, + { + 'insulation_thickness': '25', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 1 + }, + { + 'insulation_thickness': '50', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.68 + }, + { + 'insulation_thickness': '75', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.5 + }, + { + 'insulation_thickness': '100', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.4 + }, + { + 'insulation_thickness': '150', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.3 + }, + { + 'insulation_thickness': '200', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.21 + }, + { + 'insulation_thickness': '250', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.17 + }, + { + 'insulation_thickness': '270', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.16 + }, + { + 'insulation_thickness': '300', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.14 + }, + { + 'insulation_thickness': '350', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.12 + }, + { + 'insulation_thickness': '400+', + 'is_loft': True, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': False, + 'is_pitched': True, + 'is_at_rafters': False, + 'age_band': 'A', + 'uvalue': 0.11 + }, + # Flat roofs - no insulation + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'B', + 'uvalue': 2.3 + }, + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'D', + 'uvalue': 2.3 + }, + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'E', + 'uvalue': 1.5 + }, + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'F', + 'uvalue': 0.68 + }, + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'G', + 'uvalue': 0.4 + }, + { + 'insulation_thickness': 'none', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'H', + 'uvalue': 0.35 + }, + # Flat roofs - 50mm insulation + { + 'insulation_thickness': '50', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'B', + 'uvalue': 0.68 + }, + { + 'insulation_thickness': '50', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'E', + 'uvalue': 0.68 + }, + { + 'insulation_thickness': '50', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'G', + 'uvalue': 0.4 + }, + { + 'insulation_thickness': '50', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'I', + 'uvalue': 0.35 + }, + # Flat roofs - 100mm insulation + { + 'insulation_thickness': '100', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'B', + 'uvalue': 0.4 + }, + { + 'insulation_thickness': '100', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'F', + 'uvalue': 0.4 + }, + { + 'insulation_thickness': '100', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'J', + 'uvalue': 0.25 + }, + # Flat roofs - 150mm insulation + { + 'insulation_thickness': '150', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'B', + 'uvalue': 0.3 + }, + { + 'insulation_thickness': '150', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'J', + 'uvalue': 0.25 + }, + { + 'insulation_thickness': '150', + 'is_loft': False, + 'is_roof_room': False, + 'is_thatched': False, + 'has_dwelling_above': False, + 'is_flat': True, + 'is_pitched': False, + 'is_at_rafters': False, + 'age_band': 'L', + 'uvalue': 0.18 + }, +]