From 35b48cc8fcde6181969b8d84f3c734e588fdf438 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Fri, 19 Jun 2026 12:23:25 +0000 Subject: [PATCH] =?UTF-8?q?Produce=20no=20overlay=20for=20an=20unresolvabl?= =?UTF-8?q?e=20landlord=20fuel=20value=20=F0=9F=9F=A9?= 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/domain/epc/test_main_fuel_overlay.py b/tests/domain/epc/test_main_fuel_overlay.py index 3f6bfdeb..1b554f5b 100644 --- a/tests/domain/epc/test_main_fuel_overlay.py +++ b/tests/domain/epc/test_main_fuel_overlay.py @@ -50,3 +50,12 @@ def test_community_mains_gas_is_a_distinct_fuel_code() -> None: assert simulation is not None assert simulation.heating is not None assert simulation.heating.main_fuel_type == 20 + + +@pytest.mark.parametrize("main_fuel_value", ["Unknown", "", "no heating or hot water"]) +def test_unresolvable_fuel_produces_no_overlay(main_fuel_value: str) -> None: + # Act + simulation = fuel_overlay_for(main_fuel_value, 0) + + # Assert + assert simulation is None