From 8d45fcb544bc17e81ead6fa1febe4b0f959f6728 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 14 Jul 2026 15:16:08 +0000 Subject: [PATCH] =?UTF-8?q?Normalize=20PasHub=20site-notes=20emitter=20lab?= =?UTF-8?q?el=20to=20its=20SAP10=20code=20=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- datatypes/epc/domain/tests/test_from_site_notes.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/datatypes/epc/domain/tests/test_from_site_notes.py b/datatypes/epc/domain/tests/test_from_site_notes.py index e23d71f57..53917b864 100644 --- a/datatypes/epc/domain/tests/test_from_site_notes.py +++ b/datatypes/epc/domain/tests/test_from_site_notes.py @@ -165,10 +165,9 @@ class TestFromSiteNotesExample1: assert result.sap_heating.main_heating_details[0].main_fuel_type == 26 def test_main_heating_emitter(self, result: EpcPropertyData) -> None: - # heating_and_hot_water.main_heating.emitter: "Radiators" - assert ( - result.sap_heating.main_heating_details[0].heat_emitter_type == "Radiators" - ) + # heating_and_hot_water.main_heating.emitter: "Radiators" is normalized + # at the mapper boundary to SAP10 emitter code 1 (matching Elmhurst). + assert result.sap_heating.main_heating_details[0].heat_emitter_type == 1 def test_main_heating_no_fghrs(self, result: EpcPropertyData) -> None: # heating_and_hot_water.main_heating.flue_gas_heat_recovery_system: false @@ -380,7 +379,7 @@ class TestFromSiteNotesExample1: MainHeatingDetail( has_fghrs=False, main_fuel_type=26, - heat_emitter_type="Radiators", + heat_emitter_type=1, emitter_temperature="Unknown", fan_flue_present=True, main_heating_control="Programmer, room thermostat and TRVs",