summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_output.py
AgeCommit message (Collapse)AuthorFilesLines
38 hoursfeat: tx list --flat, account create --if-not-exists, --since/--until doc ↵v0.3.6Danilo M.1-1/+24
(v0.3.6) Three smaller ISSUES.md items, one PATCH (two optional flags + a doc fix; no existing caller or JSON shape changes). - tx list --flat: emit one top-level object per split (journal id repeated), dropping the transactions[] nesting so single-split journals script cleanly. JSON-only; --human already explodes splits into a table. - account create --if-not-exists: resolve the name first; on a clash return the existing account with "existed": true (exit 0) instead of surfacing Firefly's 422, so import scripts are idempotent. Detects via resolver, not by parsing the error string. - SKILL.md documents that --since/--until filter on the transaction date (the value date); Firefly journals have a single date field, no separate book date (verified against firefly-iii TimeCollection setRange). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 daystest: cover --human _VIEWS; add TODO.mdDanilo M.1-0/+38
Add unit tests for each output view (account, tag, account balance, category): right columns surfaced, API plumbing dropped. Add TODO.md listing the deferred command groups and follow-up work. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 daysoutput: decorate --human tables, color by tx type, IT datesv0.2.2Danilo M.1-0/+46
The --human transaction table now uses Italian dates (DD/MM/YYYY), a header rule line, and colors each row by transaction type (withdrawal red, deposit green, transfer cyan) when writing to a TTY. Colors are suppressed when piped; JSON output is unchanged. Bump to 0.2.2. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 daysfeat: output emit and envelope unwrapDanilo M.1-0/+31