From dc40345e26ae894b3ced1596e1c81754b8c28a9b Mon Sep 17 00:00:00 2001 From: Ahmed Allam Date: Sat, 24 Oct 2026 17:53:33 +0000 Subject: [PATCH] test(agents): check the diff skill's own coverage lines, not the word --- tests/test_agent_tool_registration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_agent_tool_registration.py b/tests/test_agent_tool_registration.py index b9011c19e..e8718dc42 100644 --- a/tests/test_agent_tool_registration.py +++ b/tests/test_agent_tool_registration.py @@ -132,7 +132,10 @@ def test_coverage_tools_can_be_turned_off() -> None: assert isinstance(diff_on.instructions, str) assert isinstance(diff_off.instructions, str) assert "Record coverage per changed component" in diff_on.instructions - assert "coverage" not in diff_off.instructions.lower() + assert "`needs_follow_up` coverage" in diff_on.instructions + assert "Record coverage per changed component" not in diff_off.instructions + assert "`needs_follow_up` coverage" not in diff_off.instructions + assert not any(name in diff_off.instructions for name in coverage) def test_instructions_override_is_used_verbatim() -> None: