The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(kanban): text timestamps reach no reader uncoerced
kshitijk4poor112b52832b67
diff --git a/tests/hermes_cli/test_kanban_cli.py b/tests/hermes_cli/test_kanban_cli.pyindex 334a9ab5393..1eee380f3d2 100644--- a/tests/hermes_cli/test_kanban_cli.py+++ b/tests/hermes_cli/test_kanban_cli.py@@ -99,6 +99,18 @@ def test_kanban_show_text_renders_graph_with_open_connection(kanban_home):assert "Cannot operate on a closed database" not in output+def test_kanban_show_text_renders_legacy_iso_completed_at(kanban_home):+ with kbc.connect_closing() as conn:+ task_id = kb.create_task(conn, title="legacy stamp")+ kb.complete_task(conn, task_id, result="ok", force=True)+ conn.execute("UPDATE tasks SET completed_at = '2026-09-30T14:22:11' WHERE id = ?", (task_id,))+ conn.commit()++ output = kc.run_slash(f"show {task_id}")++ assert "completed: 2026-09-30 14:22" in " ".join(output.split())++def test_kanban_edit_updates_documented_task_fields(kanban_home):with kbc.connect_closing() as conn:task_id = kb.create_task(conn, title="old title", body="old body", priority=2)diff --git a/tests/plugins/test_kanban_board_done_order.py b/tests/plugins/test_kanban_board_done_order.pyindex 71dea7c0f81..34130187b84 100644--- a/tests/plugins/test_kanban_board_done_order.py+++ b/tests/plugins/test_kanban_board_done_order.py@@ -86,7 +86,8 @@ def test_done_column_survives_non_integer_completed_at(client):with kbc.connect() as conn:conn.execute("UPDATE tasks SET completed_at = 1000 WHERE id = ?", (early["id"],))- conn.execute("UPDATE tasks SET completed_at = '2026-09-30T14:22:11' WHERE id = ?", (iso["id"],))+ conn.execute("UPDATE tasks SET completed_at = '2026-09-30T14:22:11', created_at = '2026-09-30T14:00:00', "+ "started_at = '2026-09-30T14:10:00' WHERE id = ?", (iso["id"],))conn.execute("UPDATE tasks SET completed_at = 'not-a-timestamp' WHERE id = ?", (garbage["id"],))conn.commit()@@ -96,6 +97,9 @@ def test_done_column_survives_non_integer_completed_at(client):# The ISO stamp parses to a present-day epoch far above 1000; garbage# coerces to None and sorts last.assert [t["id"] for t in done] == [iso["id"], early["id"], garbage["id"]]+ # Served coerced: the client gets an epoch int, never the raw text.+ assert all(isinstance(done[0][k], int) for k in ("created_at", "started_at", "completed_at"))+ assert done[2]["completed_at"] is Nonedef test_queue_lane_keeps_fifo_default(client):