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:
0xbyt4
2026-03-08 23:07:38 +03:00
parent e2fe1373f3
commit 67421ed74f

View File

@@ -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()