From 52c5826afc2261f5694ef6c5b40b6df857d9fe66 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 14 Jul 2026 14:27:34 +0000 Subject: [PATCH] =?UTF-8?q?Normalize=20PasHub=20main-heating=20Mains=20gas?= =?UTF-8?q?=20to=20SAP=20fuel=20code=2026=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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datatypes/epc/domain/tests/test_from_site_notes.py b/datatypes/epc/domain/tests/test_from_site_notes.py index bde715237..ad18a969e 100644 --- a/datatypes/epc/domain/tests/test_from_site_notes.py +++ b/datatypes/epc/domain/tests/test_from_site_notes.py @@ -160,8 +160,9 @@ class TestFromSiteNotesExample1: # --- main heating --- def test_main_heating_fuel(self, result: EpcPropertyData) -> None: - # heating_and_hot_water.main_heating.fuel: "Mains gas" - assert result.sap_heating.main_heating_details[0].main_fuel_type == "Mains gas" + # heating_and_hot_water.main_heating.fuel: "Mains gas" is normalized + # at the mapper boundary to SAP fuel code 26 (matching Elmhurst). + 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"