From 71668559bed7cfea1d37b06031c1d79220c41a27 Mon Sep 17 00:00:00 2001 From: Teknium Date: Tue, 21 Apr 2026 00:38:20 -0700 Subject: [PATCH] test(copilot-acp): patch HERMES_HOME alongside HOME in hub-block test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit file_safety now uses profile-aware get_hermes_home(), so the test fixture must override HERMES_HOME too — otherwise it resolves to the conftest's isolated tempdir and the hub-cache path doesn't match. --- tests/agent/test_copilot_acp_client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/agent/test_copilot_acp_client.py b/tests/agent/test_copilot_acp_client.py index ce481a57b..52ad20a35 100644 --- a/tests/agent/test_copilot_acp_client.py +++ b/tests/agent/test_copilot_acp_client.py @@ -57,7 +57,11 @@ class CopilotACPClientSafetyTests(unittest.TestCase): blocked.parent.mkdir(parents=True, exist_ok=True) blocked.write_text('{"token":"sk-test-secret-1234567890"}') - with patch.dict(os.environ, {"HOME": str(home)}, clear=False): + with patch.dict( + os.environ, + {"HOME": str(home), "HERMES_HOME": str(home / ".hermes")}, + clear=False, + ): response = self._dispatch( { "jsonrpc": "2.0",