The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(export): batching contract compares rows without the derived timings block
teknium1a4b3ba5e40bd
diff --git a/tests/hermes_cli/test_session_export_batch.py b/tests/hermes_cli/test_session_export_batch.pyindex 9bb76061999..2c73e454bae 100644--- a/tests/hermes_cli/test_session_export_batch.py+++ b/tests/hermes_cli/test_session_export_batch.py@@ -35,7 +35,11 @@ def test_export_all_batches_message_reads_without_changing_export_rows(tmp_path,monkeypatch.setattr(db, "_read_all", counted_read_all)- assert db.export_all(source="cli") == expected+ exported = db.export_all(source="cli")+ # Export rows carry a derived `timings` block on top of the session ++ # messages; strip it so the batching contract compares like with like.+ assert [{k: v for k, v in row.items() if k != "timings"} for row in exported] == expected+ assert all("timings" in row for row in exported)assert read_calls <= 2finally:db.close()