File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,6 +651,7 @@ async def test_validate_recipe_codex_backend_injects_overrides(tool_ctx_kitchen_
651651 requires backend_supports_git_write=false, which drives pruning of
652652 codex-incompatible steps.
653653 """
654+ from types import SimpleNamespace
654655 from unittest .mock import MagicMock , patch
655656
656657 script = tmp_path / "codex_recipe.yaml"
@@ -660,7 +661,13 @@ async def test_validate_recipe_codex_backend_injects_overrides(tool_ctx_kitchen_
660661 tool_ctx_kitchen_open .recipes .validate_from_path .return_value = {"valid" : True }
661662
662663 if tool_ctx_kitchen_open .backend is None :
663- pytest .skip ("tool_ctx has no backend configured" )
664+ backend = MagicMock ()
665+ backend .name = "codex"
666+ backend .capabilities = SimpleNamespace (
667+ git_metadata_writable = False ,
668+ supports_tool_list_changed = True ,
669+ )
670+ tool_ctx_kitchen_open .backend = backend
664671
665672 with patch (
666673 "autoskillit.server.tools.tools_recipe._get_ctx_or_none" ,
You can’t perform that action at this time.
0 commit comments