test(8249): a Grimoire tool sends no ask at all, not even for the tool list
The hook leaves a Grimoire tool before it reads the cached tool list, so the right check is that no /moment ask is made; the test expected the list fetch. Caught by CI on the reviewed tree (run 11237). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -337,7 +337,7 @@ def test_grimoires_own_tools_are_left_to_their_responses(tmp_path):
|
|||||||
with http_sink(by_path={"/api/plugin/moment-tools": b'{"tools":["update_task"]}'}) \
|
with http_sink(by_path={"/api/plugin/moment-tools": b'{"tools":["update_task"]}'}) \
|
||||||
as (port, seen):
|
as (port, seen):
|
||||||
assert _hook(tmp_path, port, tool="mcp__plugin_grimoire_grimoire__update_task") == ""
|
assert _hook(tmp_path, port, tool="mcp__plugin_grimoire_grimoire__update_task") == ""
|
||||||
assert [e["_path"] for e in seen] == ["/api/plugin/moment-tools"]
|
assert "/api/plugin/moment" not in [e["_path"] for e in seen]
|
||||||
|
|
||||||
|
|
||||||
def test_the_route_reads_every_name_the_hook_sends(tmp_path):
|
def test_the_route_reads_every_name_the_hook_sends(tmp_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user