From b7d2cff220b5b30689f19dfa4e51ddca2335cdc0 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Fri, 19 Jun 2026 14:18:33 +0000 Subject: [PATCH] =?UTF-8?q?Decode=20bottled/special=20LPG,=20community=20e?= =?UTF-8?q?lectric/biomass,=20dual-fuel,=20smokeless=20coal=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) --- tests/domain/epc/test_main_fuel_overlay.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/domain/epc/test_main_fuel_overlay.py b/tests/domain/epc/test_main_fuel_overlay.py index 6001ddc3..161078fb 100644 --- a/tests/domain/epc/test_main_fuel_overlay.py +++ b/tests/domain/epc/test_main_fuel_overlay.py @@ -47,6 +47,27 @@ def test_fuels_decode_to_their_modern_not_community_codes( assert simulation.heating.main_fuel_type == code +@pytest.mark.parametrize( + ("main_fuel_value", "code"), + [ + ("bottled LPG", 3), + ("LPG special condition", 17), + ("electricity (community)", 25), + ("biomass (community)", 31), + ("dual fuel (mineral and wood)", 10), + ("smokeless coal", 15), + ], +) +def test_more_fuels_decode_to_their_codes(main_fuel_value: str, code: int) -> None: + # Act + simulation = fuel_overlay_for(main_fuel_value, 0) + + # Assert + assert simulation is not None + assert simulation.heating is not None + assert simulation.heating.main_fuel_type == code + + def test_community_mains_gas_is_a_distinct_fuel_code() -> None: # Act simulation = fuel_overlay_for("mains gas (community)", 0)