Skip to content

Commit af96148

Browse files
author
Sergey
committed
fix(search): let scene incompleteness reach the scope-sentence gate
- a scene-only search whose configs failed lost the scope sentence entirely - tighten a scene assertion that could pass on unrelated wording - drop a docstring reference to state that was consolidated away
1 parent a442612 commit af96148

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/src/unit/test_smart_search_scene_phase25.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,10 @@ async def _get_scene(sid: str) -> dict[str, Any]:
397397
assert "match status is unknown" in reason.lower()
398398
# Integration-managed scenes are surfaced separately so their
399399
# 100+ count on Hue installs doesn't read as "everything broken".
400-
assert "integration-managed" in reason.lower(), (
400+
# Assert the COUNT fragment, not the bare phrase: several clauses
401+
# mention "integration-managed", so matching the phrase alone would
402+
# pass even if the integration/failure split were not reported at all.
403+
assert "2 integration-managed scenes are scored by attribute only" in reason, (
401404
f"partial_reason should distinguish integration scenes: {reason!r}"
402405
)
403406

0 commit comments

Comments
 (0)