Skip to content

The agent that grows with you

test(auth): anon-auth fixture resets the per-profile token memo as a dict

Teknium0c0983ab21d5
diff --git a/tests/hermes_cli/test_anon_auth_core.py b/tests/hermes_cli/test_anon_auth_core.py
index 390c9a36a69..9c5b8f2f775 100644
--- a/tests/hermes_cli/test_anon_auth_core.py
+++ b/tests/hermes_cli/test_anon_auth_core.py
@@ -91,10 +91,10 @@ def portal(monkeypatch, tmp_path):
anon_auth._mint_failed = False
from hermes_cli import free_tier_bootstrap as _fb
_fb.reset_for_tests()
- # resolve_nous_access_token memoises the last token for 5 s across the process; a token minted
+ # resolve_nous_access_token memoises the last token for 5 s per profile home (dict); a token minted
# by an earlier test must not be served to this one.
from hermes_cli import auth as auth_mod
- monkeypatch.setattr(auth_mod, "_RESOLVE_TOKEN_CACHE", None)
+ monkeypatch.setattr(auth_mod, "_RESOLVE_TOKEN_CACHE", {})
return fake