aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/test_resolver.py
AgeCommit message (Collapse)AuthorFilesLines
7 daysfeat(piggy): piggy list/add/remove (v0.6.0)HEADv0.6.0masterDanilo M.1-0/+11
New `piggy` group: - `piggy list` lists piggy banks with saved/target amounts and linked accounts. - `piggy add|remove <name|id> <amount> [--account NAME]` changes the saved amount on a linked account via PUT /piggy-banks/{id}. Firefly syncs the whole account list on that PUT, so every linked account is resent (others without current_amount, which keeps their value) or it would be unlinked. Removing below zero is rejected before any write, and the saved amount is read back so a refused add fails loudly instead of returning 200 unchanged. add/remove currently hit an upstream bug on Firefly III <= 6.7.9: PiggyBankFactory::linkToAccountIds passes the pivot current_amount (an int from the DB) to bcsub() uncast, so any PUT with "accounts" 500s (firefly-iii/firefly-iii#13063). Documented in SKILL.md/README; the live integration test skips on that error and runs once upstream is fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-07-03feat(resolver): budget name/id resolutionDanilo M.1-0/+33
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02feat: tx add --from-id/--to-id to disambiguate same-name accounts (v0.3.7)v0.3.7Danilo M.1-0/+10
ISSUES.md #2: two accounts can share a name (e.g. expense id 52 and revenue id 129 both "Nexi"), making --from/--to ambiguous and unresolvable. Add --from-id/--to-id to target an account by numeric id. Per side, exactly one of the name flag or the id flag; sides independent. The id path fetches the account (resolver.account_by_id), validating existence before writing. Name-only callers unchanged; JSON/exit unchanged, so PATCH. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30feat: name-to-id resolver with loud ambiguity errorsDanilo M.1-0/+43