From 9bbd7f97c866633ec652070bb2e368c1c690e90f Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 8 Aug 2026 12:06:59 -0700 Subject: [PATCH] test: pin module-level _AUTH_JSON_PATH to tmp store in salvaged windows-encoding test --- tests/hermes_cli/test_auth_store_windows_encoding.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hermes_cli/test_auth_store_windows_encoding.py b/tests/hermes_cli/test_auth_store_windows_encoding.py index 3082863e9a..0f45be6b45 100644 --- a/tests/hermes_cli/test_auth_store_windows_encoding.py +++ b/tests/hermes_cli/test_auth_store_windows_encoding.py @@ -232,6 +232,11 @@ class TestAuthJsonSiblingReaders: import agent.auxiliary_client as aux + # _AUTH_JSON_PATH is resolved at module import time, so the + # HERMES_HOME env from the fixture doesn't reach it — point it at + # the tmp store explicitly. + monkeypatch.setattr(aux, "_AUTH_JSON_PATH", hermes_home / "auth.json") + # _read_nous_auth consults the credential pool FIRST and returns early # when a pool entry exists, never reaching the auth.json read. Force the # pool-absent path so the auth.json code under test actually runs.