Map door custom_displayable_fields to DoorVentilation 🟥

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-06-05 12:51:57 +00:00
parent cda2091e23
commit 06816c3f9c

View file

@ -254,6 +254,15 @@ def test_window_with_no_custom_fields_has_no_ventilation() -> None:
assert window.ventilation is None
def test_toilet_door_has_ventilation_undercut(plan_new: Plan) -> None:
# Toilet is floor 0 room 2; its doorhinged has Door Undercut (mm) = 70
toilet_doors = plan_new.floors[0].rooms[2].doors
hinged = next(d for d in toilet_doors if d.ventilation is not None)
assert hinged.ventilation is not None
assert hinged.ventilation.undercut_mm == 70.0
def test_kitchen_window_has_ventilation(plan_new: Plan) -> None:
# Arrange — Kitchen is floor 0 room 0; its only window is a windowcasement
# with custom_displayable_fields populated in the new fixture.