mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
fix: update test assertions for /compact -> /compress rename
This commit is contained in:
parent
4c2e34f07d
commit
cb39be92e4
1 changed files with 4 additions and 4 deletions
|
|
@ -287,7 +287,7 @@ class TestSessionOps:
|
|||
"tools",
|
||||
"context",
|
||||
"reset",
|
||||
"compact",
|
||||
"compress",
|
||||
"steer",
|
||||
"queue",
|
||||
"version",
|
||||
|
|
@ -1527,7 +1527,7 @@ class TestSlashCommands:
|
|||
|
||||
assert "Context usage: ~25,000 / 100,000 tokens (25.0%)" in result
|
||||
assert "Compression: ~55,000 tokens until threshold (~80,000, 80%)" in result
|
||||
assert "Tip: run /compact" in result
|
||||
assert "Tip: run /compress" in result
|
||||
|
||||
def test_context_says_compression_due_when_past_threshold(self, agent, mock_manager):
|
||||
state = self._make_state(mock_manager)
|
||||
|
|
@ -1544,7 +1544,7 @@ class TestSlashCommands:
|
|||
result = agent._handle_slash_command("/context", state)
|
||||
|
||||
assert "Context usage: ~82,000 / 100,000 tokens (82.0%)" in result
|
||||
assert "Compression: due now (threshold ~80,000, 80%). Run /compact." in result
|
||||
assert "Compression: due now (threshold ~80,000, 80%). Run /compress." in result
|
||||
|
||||
def test_reset_clears_history(self, agent, mock_manager):
|
||||
state = self._make_state(mock_manager)
|
||||
|
|
@ -1620,7 +1620,7 @@ class TestSlashCommands:
|
|||
side_effect=[40, 12],
|
||||
),
|
||||
):
|
||||
result = agent._handle_slash_command("/compact", state)
|
||||
result = agent._handle_slash_command("/compress", state)
|
||||
|
||||
assert "Context compressed: 4 -> 1 messages" in result
|
||||
assert "~40 -> ~12 tokens" in result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue