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

Method test_not_found_when_nowhere

tests/test_check_tool.py:64–73  ·  view source on GitHub ↗

Should return False when claude is genuinely not installed.

(self, tmp_path)

Source from the content-addressed store, hash-verified

62 assert check_tool("claude") is True
63
64 def test_not_found_when_nowhere(self, tmp_path):
65 """Should return False when claude is genuinely not installed."""
66 fake_missing = tmp_path / "nonexistent" / "claude"
67
68 with patch("specify_cli.CLAUDE_LOCAL_PATH", fake_missing), \
69 patch("specify_cli._utils.CLAUDE_LOCAL_PATH", fake_missing), \
70 patch("specify_cli.CLAUDE_NPM_LOCAL_PATH", fake_missing), \
71 patch("specify_cli._utils.CLAUDE_NPM_LOCAL_PATH", fake_missing), \
72 patch("shutil.which", return_value=None):
73 assert check_tool("claude") is False
74
75 def test_tracker_updated_on_npm_local_detection(self, tmp_path):
76 """StepTracker should be marked 'available' for npm-local installs."""

Callers

nothing calls this directly

Calls 1

check_toolFunction · 0.90

Tested by

no test coverage detected