test(7835): a record past the write path's margin is pinned to the pointer, not to silence
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 40s
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 40s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -271,7 +271,9 @@ async def test_margin_gate_applies_to_the_semantic_arm():
|
|||||||
patch.object(pc, "owner_names_for", AsyncMock(return_value={})):
|
patch.object(pc, "owner_names_for", AsyncMock(return_value={})):
|
||||||
out = await pc.build_write_path_hint(1, "src/x.py", code=REAL_CODE)
|
out = await pc.build_write_path_hint(1, "src/x.py", code=REAL_CODE)
|
||||||
assert out["note_ids"] == [11, 22]
|
assert out["note_ids"] == [11, 22]
|
||||||
assert "#33" not in out["context"]
|
# Past the margin: no line of its own, only its id in the pointer.
|
||||||
|
assert "#33 [" not in out["context"]
|
||||||
|
assert "not shown: snippets #33 (`get_snippet(id)`)" in out["context"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|||||||
Reference in New Issue
Block a user