Skip to content

Commit af864b4

Browse files
Trecekclaude
andcommitted
fix(review): remove duplicate test_pre_reveal_backend_does_not_support_tool_list_changed
Structural duplicate of test_pre_reveal_then_open_does_not_re_execute_handler with no distinguishing mock setup — same helper, patches, and assertions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 831bbbb commit af864b4

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

tests/server/test_open_kitchen_deferred_recall.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -336,34 +336,6 @@ async def test_gate_rollback_resets_gate_infrastructure_ready():
336336
assert mock_ctx.gate_infrastructure_ready is False
337337

338338

339-
@pytest.mark.anyio
340-
async def test_pre_reveal_backend_does_not_support_tool_list_changed():
341-
"""Simulates Codex pre-reveal: gate enabled, recipe_name empty, infrastructure ready.
342-
Handler must be skipped, recipe loaded normally."""
343-
from autoskillit.server.tools import tools_kitchen
344-
345-
mock_ctx = _make_pre_revealed_ctx("test-recipe")
346-
mock_recipe_info = MagicMock()
347-
mock_recipe_info.path = Path("/fake/.autoskillit/recipes/test-recipe.yaml")
348-
mock_ctx.recipes.find.return_value = mock_recipe_info
349-
mock_recipe_obj = MagicMock()
350-
mock_recipe_obj.steps = {"build": {"cmd": "task build"}}
351-
mock_recipe_obj.ingredients = {"ing1": "val1"}
352-
mock_ctx.recipes.load.return_value = mock_recipe_obj
353-
354-
with (
355-
patch("autoskillit.server._get_ctx", return_value=mock_ctx),
356-
patch.object(
357-
tools_kitchen, "_open_kitchen_handler", new_callable=MagicMock
358-
) as mock_handler,
359-
):
360-
result = await tools_kitchen.open_kitchen(name="test-recipe", ctx=mock_ctx)
361-
362-
mock_handler.assert_not_called()
363-
parsed = json.loads(result)
364-
assert parsed["success"] is True
365-
366-
367339
@pytest.mark.anyio
368340
async def test_cold_open_kitchen_runs_handler():
369341
"""When gate_infrastructure_ready is False (cold state), handler must run."""

0 commit comments

Comments
 (0)