diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-11-05 00:52:37 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-05 00:52:37 +0000 |
| commit | f03463a7c915b426515702187e8e5e591c1e0159 (patch) | |
| tree | 7ee4f1a8e636945cb2a7cf6ecd8b7b7c7a1524b6 /plugins/security-guidance/tests | |
| parent | 2b4e52d22c949b8406481983d0f79d22a2906b42 (diff) | |
security-guidance: keep the native install in sessions started above the home foldermhegazy/sg-windows-cli-path
Co-authored-by: mhegazy <mhegazy@anthropic.com>
Diffstat (limited to 'plugins/security-guidance/tests')
| -rw-r--r-- | plugins/security-guidance/tests/test_windows_cli_lookup.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/security-guidance/tests/test_windows_cli_lookup.py b/plugins/security-guidance/tests/test_windows_cli_lookup.py index 2d2a3541..3afea8e5 100644 --- a/plugins/security-guidance/tests/test_windows_cli_lookup.py +++ b/plugins/security-guidance/tests/test_windows_cli_lookup.py @@ -128,6 +128,12 @@ class TestUsersOwnCli: set_path(monkeypatch, tmp_path / "repo-tools") assert llm._windows_user_cli() == exe + def test_session_above_the_home_folder_still_finds_the_native_install(self, win, monkeypatch): + native = put(win.home / ".local" / "bin") + monkeypatch.chdir(win.home.parent) + monkeypatch.setenv("CLAUDE_PROJECT_DIR", str(win.home.parent)) + assert llm._windows_user_cli() == native + def test_tools_under_the_home_folder_are_found(self, win, monkeypatch): exe = put(win.home / "AppData" / "tool") monkeypatch.chdir(win.home) |
