diff --git a/tests/test_write_path_trigger.py b/tests/test_write_path_trigger.py index e378ae40..4d6b936a 100644 --- a/tests/test_write_path_trigger.py +++ b/tests/test_write_path_trigger.py @@ -271,7 +271,9 @@ async def test_margin_gate_applies_to_the_semantic_arm(): patch.object(pc, "owner_names_for", AsyncMock(return_value={})): out = await pc.build_write_path_hint(1, "src/x.py", code=REAL_CODE) 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