mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
fix: set compression_count on mock to avoid TypeError in test
The new degradation warning reads compression_count as an int, but the existing test's MagicMock returns a MagicMock object for that attribute, causing '>=' comparison to fail.
This commit is contained in:
parent
8567031433
commit
989d4ea43d
1 changed files with 1 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ class TestContextPressureFlags:
|
|||
]
|
||||
agent.context_compressor.context_length = 200_000
|
||||
agent.context_compressor.threshold_tokens = 100_000
|
||||
agent.context_compressor.compression_count = 1
|
||||
|
||||
agent._todo_store = MagicMock()
|
||||
agent._todo_store.format_for_injection.return_value = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue