You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): split scene/script blocklist test, add positive scene case
The previous combined test parametrized both ``script`` and ``scene``
and asserted both were blocked, but the round-2 review correctly
flagged that ``config/scene/config/*`` should NOT be blocked because
no ``ha_config_set_scene`` wrapping tool exists to redirect to.
Removed the scene entry from ``_API_POST_BLOCKED_PREFIXES`` in
0bb0dec but missed updating this test, which caught the regression
in CI on both runners.
Replace with two tests:
* ``test_api_post_blocks_script_config_write`` — single-kind
assertion for script (the only one of the two with a wrapping
tool).
* ``test_api_post_allows_scene_config_write`` — positive assertion
that scene writes are NOT sandbox-blocked. The HA endpoint may
reject the body for legitimate reasons (schema, missing fields),
but the sandbox-side blocklist must not be the cause. This will
fail loudly if a future maintainer adds the block back without
also adding the wrapping tool.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments