Produce no overlay for an unresolvable landlord glazing value 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jun-te Kim 2026-06-19 13:19:56 +00:00
parent 88a4badbf7
commit 71bdcabb73

View file

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