Normalize PasHub main-heating Mains gas to SAP fuel code 26 🟥

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-14 14:27:34 +00:00
parent 3dd86f296d
commit 52c5826afc

View file

@ -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"