fixing solar recs

This commit is contained in:
Khalim Conn-Kowlessar 2025-05-14 16:49:03 +01:00
parent b609a3f2bb
commit 53f70ab14d

View file

@ -26,7 +26,9 @@ class TestSolarPvRecommendations:
"county": "Huntingdonshire", "property-type": "House", "photo-supply": None
}
property_instance_invalid_roof = Property(id=1, address="", postcode="", epc_record=epc_record)
property_instance_invalid_roof.roof = {"is_flat": False, "is_pitched": False, "is_roof_room": False}
property_instance_invalid_roof.roof = {
"is_flat": False, "is_pitched": False, "is_roof_room": False, "thermal_transmittance": None
}
return property_instance_invalid_roof
@pytest.fixture
@ -36,7 +38,7 @@ class TestSolarPvRecommendations:
epc_record.prepared_epc = {"photo-supply": "40", "county": "Huntingdonshire",
"property-type": "House"}
property_instance_has_solar_pv = Property(id=1, address="", postcode="", epc_record=epc_record)
property_instance_has_solar_pv.roof = {"is_flat": True}
property_instance_has_solar_pv.roof = {"is_flat": True, "thermal_transmittance": None}
return property_instance_has_solar_pv
@pytest.fixture