Skip to content

The agent that grows with you

test: isolate external auth stores in pool command fixtures

Tekniumc13c37a69952
diff --git a/tests/hermes_cli/test_auth_pool_operations.py b/tests/hermes_cli/test_auth_pool_operations.py
index 92c226346b9..26a8a06de8c 100644
--- a/tests/hermes_cli/test_auth_pool_operations.py
+++ b/tests/hermes_cli/test_auth_pool_operations.py
@@ -12,6 +12,14 @@ from hermes_cli import auth_commands
from hermes_cli.auth import read_credential_pool, write_credential_pool
[email protected](autouse=True)
+def isolated_external_auth_stores(tmp_path, monkeypatch):
+ from pathlib import Path
+
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
+ monkeypatch.setenv("HERMES_SHARED_AUTH_DIR", str(tmp_path / "shared"))
+
+
def _rows():
return [dict(id=f"row{i}", label=f"account{i}", source="manual:device_code",
auth_type="oauth", access_token=f"fixture-access-{i}",