Leave non-sloping-ceiling roof descriptions for the party guard and LLM 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-23 13:49:35 +00:00
parent 02a71feae1
commit a6a2764b5e

View file

@ -83,3 +83,24 @@ def test_sloping_ceiling_depth_below_the_ladder_falls_back_to_as_built() -> None
# Assert
assert member is RoofType.PITCHED_SLOPING_CEILING_AS_BUILT
@pytest.mark.parametrize(
"description",
[
"Pitched, 150 mm loft insulation",
"PitchedNormalLoftAccess: 150mm",
"anotherdwellingabove: 100mm",
"Flat: As Built",
"",
],
)
def test_non_sloping_ceiling_descriptions_are_not_guarded(description: str) -> None:
# A description that is not a sloping-ceiling marker returns None, so the
# party-ceiling guard and the LLM classifier still handle it (#1376 pattern).
# Act
member = roof_sloping_ceiling_guard(description)
# Assert
assert member is None