diff --git a/datatypes/epc/domain/tests/test_from_site_notes.py b/datatypes/epc/domain/tests/test_from_site_notes.py index abc2742b..7b552773 100644 --- a/datatypes/epc/domain/tests/test_from_site_notes.py +++ b/datatypes/epc/domain/tests/test_from_site_notes.py @@ -603,3 +603,32 @@ class TestFromSiteNotesFloorConstruction: def test_floor_u_value_known(self, result: EpcPropertyData) -> None: # building_construction.floor.floor_u_value_known: false assert result.sap_building_parts[0].floor_u_value_known is False + + +class TestFromSiteNotesHeatingBoiler: + """ + Fixture: pashub_rdsap_site_notes_example1.json + Boiler: Vaillant ecoFIT sustain, condensing, no weather compensator, pump age unknown. + """ + + @pytest.fixture + def survey(self) -> PasHubRdSapSiteNotes: + return from_dict( + PasHubRdSapSiteNotes, load("pashub_rdsap_site_notes_example1.json") + ) + + @pytest.fixture + def result(self, survey: PasHubRdSapSiteNotes) -> EpcPropertyData: + return EpcPropertyDataMapper.from_site_notes(survey) + + def test_condensing(self, result: EpcPropertyData) -> None: + # heating_and_hot_water.main_heating.condensing: true + assert result.sap_heating.main_heating_details[0].condensing is True + + def test_weather_compensator(self, result: EpcPropertyData) -> None: + # heating_and_hot_water.main_heating.weather_compensator: false + assert result.sap_heating.main_heating_details[0].weather_compensator is False + + def test_central_heating_pump_age_str(self, result: EpcPropertyData) -> None: + # heating_and_hot_water.main_heating.central_heating_pump_age: "Unknown" + assert result.sap_heating.main_heating_details[0].central_heating_pump_age_str == "Unknown"