Should return False when claude is genuinely not installed.
(self, tmp_path)
| 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.""" |
nothing calls this directly
no test coverage detected