mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-22 08:48:38 +00:00
18 lines
703 B
Python
18 lines
703 B
Python
from __future__ import annotations
|
|
|
|
from domain.epc.property_overrides.roof_type import RoofType
|
|
from domain.epc.property_overrides.roof_party_ceiling_guard import (
|
|
roof_party_ceiling_guard,
|
|
)
|
|
|
|
|
|
def test_party_ceiling_marker_with_a_trailing_depth_resolves_to_the_party_ceiling_member() -> None:
|
|
# Arrange — the bug: a party ceiling ("another dwelling above") carrying a
|
|
# trailing loft depth the LLM misreads as an external pitched roof.
|
|
description = "another dwelling above: 100mm"
|
|
|
|
# Act
|
|
result = roof_party_ceiling_guard(description)
|
|
|
|
# Assert — it is a party ceiling (~0 heat loss), not a Pitched roof.
|
|
assert result is RoofType.ADJACENT_ANOTHER_DWELLING_ABOVE
|