From 71bdcabb73a92e257f0704dafda136161d07d0db Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Fri, 19 Jun 2026 13:19:56 +0000 Subject: [PATCH] =?UTF-8?q?Produce=20no=20overlay=20for=20an=20unresolvabl?= =?UTF-8?q?e=20landlord=20glazing=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_glazing_overlay.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/domain/epc/test_glazing_overlay.py b/tests/domain/epc/test_glazing_overlay.py index a5a6699e..9668e3aa 100644 --- a/tests/domain/epc/test_glazing_overlay.py +++ b/tests/domain/epc/test_glazing_overlay.py @@ -41,3 +41,12 @@ def test_glazing_types_decode_to_their_sap_codes( assert simulation is not None assert simulation.glazing is not None assert simulation.glazing.glazing_type == code + + +@pytest.mark.parametrize("glazing_value", ["Unknown", ""]) +def test_unresolvable_glazing_produces_no_overlay(glazing_value: str) -> None: + # Act + simulation = glazing_overlay_for(glazing_value, 0) + + # Assert + assert simulation is None