daybook/tests
peter e137725cab Add json/csv support to the posting script (issue #012)
TEXT_KINDS and TEXT_SUFFIXES now include json/csv, with matching
sniff_text_kind branches so both explicit --kind and positional auto-mode
work. Added validate_payload's JSON shape check mirroring the server.
Updated SKILL.md/docs/llm_posting_helper.md with real usage examples,
replacing the stale --as-markdown workaround guidance (kept only for
genuinely unstructured code, which still has no dedicated kind). Also
fixed an unrelated stale doc line found in the same table: html_full's
validation was documented as requiring <!doctype AND <html, but only
<html is actually required.

Verified via dry-run (explicit --kind, auto-mode, invalid-JSON rejection)
and one real end-to-end post through the script against the live dev
instance.

Added tests/scripts/test_daybook_post.py - 17 tests, plain unittest, zero
new dependencies, loaded via importlib since the script isn't a package.
Closes the test-coverage question the issue raised.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 15:38:47 +01:00
..
api Reject non-string source_name/source_id/source_prompt (issue #008) 2026-09-02 15:27:07 +01:00
scripts Add json/csv support to the posting script (issue #012) 2026-09-02 15:38:47 +01:00
unit Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
views Add admin-only Settings -> Users page for creating accounts 2026-09-02 12:33:38 +01:00
__init__.py Initial public commit 2026-09-01 21:55:02 +01:00