The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(tests): assert the read cap literal instead of importing _READ_MAX_CONTENT
teknium177da057c5e73
diff --git a/tests/tools/test_session_search.py b/tests/tools/test_session_search.pyindex 6bb41d5f099..c1ceec9f234 100644--- a/tests/tools/test_session_search.py+++ b/tests/tools/test_session_search.py@@ -19,7 +19,6 @@ from hermes_state import SessionDBfrom tools.session_search_tool import (SESSION_SEARCH_SCHEMA,_format_timestamp,- _READ_MAX_CONTENT,_is_compacted_message,_resolve_to_parent,_session_link,@@ -504,7 +503,7 @@ class TestReadShape:assert result["mode"] == "read"assert result["truncated"] is False # 3 messages, count-wise it all fitsbig = next(m for m in result["messages"] if m.get("content_truncated"))- assert len(big["content"]) <= _READ_MAX_CONTENT + 1 # cap plus ellipsis+ assert len(big["content"]) <= 2001 # read cap (2000) plus ellipsisassert big["original_content_chars"] == 80_000assert sum(len(m.get("content") or "") for m in result["messages"]) < 5_000