The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(todo): make JSON-string coercion test order-agnostic
Tekniumf8cc6d082e56
diff --git a/tests/tools/test_todo_tool_type_coercion.py b/tests/tools/test_todo_tool_type_coercion.pyindex fa70b8c91ab..84d03a6781f 100644--- a/tests/tools/test_todo_tool_type_coercion.py+++ b/tests/tools/test_todo_tool_type_coercion.py@@ -23,8 +23,12 @@ class TestJsonStringCoercion:result = json.loads(todo_tool(todos=todos_str, store=store))assert "error" not in resultassert result["summary"]["total"] == 2- assert result["todos"][0]["id"] == "t1"- assert result["todos"][1]["status"] == "in_progress"+ # Order-agnostic: TodoStore._normalize_order may lift the in_progress+ # item ahead of earlier pending rows (#42649); this test only pins+ # JSON-string coercion, not ordering.+ by_id = {t["id"]: t for t in result["todos"]}+ assert set(by_id) == {"t1", "t2"}+ assert by_id["t2"]["status"] == "in_progress"def test_non_list_non_string_returns_error(self):