MCPcopy Index your code
hub / github.com/github/spec-kit / test_kiro_fallback

Method test_kiro_fallback

tests/test_check_tool.py:106–112  ·  view source on GitHub ↗

kiro-cli detection should try both kiro-cli and kiro.

(self)

Source from the content-addressed store, hash-verified

104 assert check_tool("nonexistent-tool") is False
105
106 def test_kiro_fallback(self):
107 """kiro-cli detection should try both kiro-cli and kiro."""
108 def fake_which(name):
109 return "/usr/bin/kiro" if name == "kiro" else None
110
111 with patch("shutil.which", side_effect=fake_which):
112 assert check_tool("kiro-cli") is True
113
114 def test_rovodev_uses_acli_executable(self):
115 """rovodev should resolve through the shared acli executable."""

Callers

nothing calls this directly

Calls 1

check_toolFunction · 0.90

Tested by

no test coverage detected