test(8249): the payload-shape test expects the code as the shell sends it, without a trailing newline
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m13s
CI & Build / integration (push) Successful in 2m16s
CI & Build / Build & push image (push) Successful in 24s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m13s
CI & Build / integration (push) Successful in 2m16s
CI & Build / Build & push image (push) Successful in 24s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1020,8 +1020,9 @@ def test_hook_is_executable_and_shell_valid():
|
|||||||
])
|
])
|
||||||
def test_hook_reads_every_write_and_edit_payload_shape(tmp_path, tool, field):
|
def test_hook_reads_every_write_and_edit_payload_shape(tmp_path, tool, field):
|
||||||
"""Write and Edit name the payload differently, and the names have changed
|
"""Write and Edit name the payload differently, and the names have changed
|
||||||
across Claude Code versions: the code is sent whichever one is present."""
|
across Claude Code versions: the code is sent whichever one is present.
|
||||||
code = "def debounce(fn):\n return fn\n"
|
(The shell drops a trailing newline, so the code here has none.)"""
|
||||||
|
code = "def debounce(fn):\n return fn"
|
||||||
seen = _run_hook_against_sink(tmp_path, {
|
seen = _run_hook_against_sink(tmp_path, {
|
||||||
"session_id": f"s-shape-{field}", "cwd": str(tmp_path), "tool_name": tool,
|
"session_id": f"s-shape-{field}", "cwd": str(tmp_path), "tool_name": tool,
|
||||||
"tool_input": {"file_path": str(tmp_path / "b.py"), field: code},
|
"tool_input": {"file_path": str(tmp_path / "b.py"), field: code},
|
||||||
|
|||||||
Reference in New Issue
Block a user