mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
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:
parent
88a4badbf7
commit
71bdcabb73
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue