The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): isolate the Feishu dedup persistence test from the operator's live store
KoNit-Kc8d8df41d2c4
diff --git a/tests/gateway/test_feishu.py b/tests/gateway/test_feishu.pyindex 369c7113a00..8612cd776d3 100644--- a/tests/gateway/test_feishu.py+++ b/tests/gateway/test_feishu.py@@ -1709,7 +1709,11 @@ class TestDedupTTL(unittest.TestCase):from gateway.config import PlatformConfigfrom plugins.platforms.feishu.adapter import FeishuAdapter- adapter = FeishuAdapter(PlatformConfig())+ # Keep the per-test HERMES_HOME through the env wipe: the adapter resolves its+ # dedup store from get_hermes_home() at construction, and a cleared environment+ # falls back to the operator's real ~/.hermes, whose live ids leak into writes[-1].+ with patch.dict(os.environ, {"HERMES_HOME": os.environ["HERMES_HOME"]}, clear=True):+ adapter = FeishuAdapter(PlatformConfig())writes = []calls = [0]