Skip to content

The agent that grows with you

test(update): receipt fixture sets HERMES_HOME, the seam _receipt_dir now reads

teknium147685348eaca
diff --git a/tests/hermes_cli/test_update_receipt.py b/tests/hermes_cli/test_update_receipt.py
index 5ed815883be..e5969a96d7a 100644
--- a/tests/hermes_cli/test_update_receipt.py
+++ b/tests/hermes_cli/test_update_receipt.py
@@ -25,9 +25,9 @@ def receipt_home(tmp_path, monkeypatch):
"""Isolated HERMES_HOME for receipt writes."""
home = tmp_path / ".hermes"
home.mkdir()
- monkeypatch.setattr(
- "hermes_cli.config.get_hermes_home", lambda: home, raising=False
- )
+ # ``_receipt_dir`` resolves through ``hermes_constants.get_hermes_home`` (env var), not
+ # ``hermes_cli.config`` — patch where production reads.
+ monkeypatch.setenv("HERMES_HOME", str(home))
# ensure no receipt bleeds between tests
ur._current = None
yield home