From bf31a35e6d6e5a757f0ccad29d6ca186577a48cf Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 23 Apr 2026 14:31:10 +0000 Subject: [PATCH] =?UTF-8?q?Map=20heating=20boiler=20properties=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epc/domain/tests/test_from_site_notes.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) 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"