mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Leave a genuine (non-party-ceiling) roof description to the LLM classifier 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3aa5dfc45f
commit
fe663deef5
1 changed files with 20 additions and 0 deletions
|
|
@ -40,3 +40,23 @@ def test_every_party_ceiling_marker_variant_resolves_to_its_member(
|
|||
|
||||
# Assert
|
||||
assert result is expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"description",
|
||||
[
|
||||
"pitched, normal loft access: 100mm",
|
||||
"flat: 150mm",
|
||||
"pitched with sloping ceiling: unknown",
|
||||
"roof room(s), insulated",
|
||||
],
|
||||
)
|
||||
def test_a_genuine_roof_description_is_left_to_the_llm(description: str) -> None:
|
||||
# A non-party-ceiling roof must return None so the LLM classifier still
|
||||
# resolves it — the guard only claims the markers it is certain about.
|
||||
|
||||
# Act
|
||||
result = roof_party_ceiling_guard(description)
|
||||
|
||||
# Assert
|
||||
assert result is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue