The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): pin the fake machine home through HOME, not only Path.home (#98699)
teknium154a8a30b8594
diff --git a/tests/hermes_cli/test_gateway_service.py b/tests/hermes_cli/test_gateway_service.pyindex d1dc8ee056e..ddfb2ee4e50 100644--- a/tests/hermes_cli/test_gateway_service.py+++ b/tests/hermes_cli/test_gateway_service.py@@ -205,6 +205,10 @@ class TestServiceIdentityForForeignHome:home = tmp_path / "home"home.mkdir()monkeypatch.setattr(Path, "home", lambda: home)+ # The user unit dir follows the ACCOUNT home (#98699), which is read from the environment.+ monkeypatch.setenv("HOME", str(home))+ monkeypatch.delenv("HERMES_REAL_HOME", raising=False)+ monkeypatch.delenv("XDG_CONFIG_HOME", raising=False)return homedef test_foreign_home_gets_its_own_unit(self, machine_home, tmp_path, monkeypatch):