mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: update test_non_empty_has_markers to match todo filtering behavior
Completed/cancelled items are now filtered from format_for_injection() output. Update the existing test to verify active items appear and completed items are excluded.
This commit is contained in:
parent
e2fe1373f3
commit
67421ed74f
1 changed files with 8 additions and 2 deletions
|
|
@ -46,11 +46,17 @@ class TestFormatForInjection:
|
|||
store.write([
|
||||
{"id": "1", "content": "Do thing", "status": "completed"},
|
||||
{"id": "2", "content": "Next", "status": "pending"},
|
||||
{"id": "3", "content": "Working", "status": "in_progress"},
|
||||
])
|
||||
text = store.format_for_injection()
|
||||
assert "[x]" in text
|
||||
# Completed items are filtered out of injection
|
||||
assert "[x]" not in text
|
||||
assert "Do thing" not in text
|
||||
# Active items are included
|
||||
assert "[ ]" in text
|
||||
assert "Do thing" in text
|
||||
assert "[>]" in text
|
||||
assert "Next" in text
|
||||
assert "Working" in text
|
||||
assert "context compression" in text.lower()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue