From 93d8f7a1e587a415d1e6cf3674ce5389909b0919 Mon Sep 17 00:00:00 2001 From: ochenstarik-ui <267932263+ochenstarik-ui@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:08:14 +0000 Subject: [PATCH] fix(test): isolate agy lookup in hermetic credential test Clean Windows runners have no agy binary. Point AGY_EXE_PATH at a dummy file so the test still checks subprocess env sanitization. --- tests/test_credential_isolation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_credential_isolation.py b/tests/test_credential_isolation.py index df1dd40..aec385b 100644 --- a/tests/test_credential_isolation.py +++ b/tests/test_credential_isolation.py @@ -104,6 +104,11 @@ def test_antigravity_adapter_subprocess_env_isolation(tmp_path, monkeypatch): return mock_res adapter = AntigravityAdapter() + fake_agy = tmp_path / "agy.exe" + fake_agy.write_bytes(b"") + import antigravity_provider.agy_subprocess as agy_sub + monkeypatch.setattr(agy_sub, "_agy_exe_cache", None) + monkeypatch.setenv("AGY_EXE_PATH", str(fake_agy)) with patch("subprocess.run", side_effect=mock_subprocess_run): res = adapter.invoke(profile, {"messages": [{"role": "user", "content": "hi"}]})