mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
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:
parent
02a71feae1
commit
a6a2764b5e
1 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue