From 67421ed74f2e5cc1e7ac619e12b56519cfeae088 Mon Sep 17 00:00:00 2001 From: 0xbyt4 <35742124+0xbyt4@users.noreply.github.com> Date: Sun, 8 Mar 2026 23:07:38 +0300 Subject: [PATCH] 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. --- tests/tools/test_todo_tool.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/tools/test_todo_tool.py b/tests/tools/test_todo_tool.py index b0f694d7..d4fd03ba 100644 --- a/tests/tools/test_todo_tool.py +++ b/tests/tools/test_todo_tool.py @@ -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()