quartermaster/tests
archeious e80a3508b6 test: cover posting CRUD and update existing tests to use the ledger
New test_postings.py walks service and route layers: add sums into
applied, negatives are allowed, update and delete round-trip, entry
deletion cascades postings, order is desc by date, update_month_entry
rejects the removed applied kwarg. Route tests assert HTTP behaviour,
invalid-date rejection, closed-month lock, tone flip after a posting,
and the "N txns" count badge renders.

Existing tests that previously set applied via update_month_entry or
the entries route now use add_posting or POST to /postings. Format
assertions updated to match the new thousands-separator number
rendering and the replaced entry-notes-row markup.

Refs #19

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 17:34:53 -06:00
..
__init__.py test: cover CRUD, debt target selection, and ON DELETE SET NULL 2026-04-17 11:04:18 -06:00
conftest.py test: cover CRUD, debt target selection, and ON DELETE SET NULL 2026-04-17 11:04:18 -06:00
test_backup_script.py test: cover backup-db.sh exit paths and slug sanitisation 2026-04-17 11:51:55 -06:00
test_groups.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_month_lifecycle.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_month_routes.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_month_service.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_notes.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_postings.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00
test_routes.py test: cover CRUD, debt target selection, and ON DELETE SET NULL 2026-04-17 11:04:18 -06:00
test_service.py test: cover CRUD, debt target selection, and ON DELETE SET NULL 2026-04-17 11:04:18 -06:00
test_zero_amount.py test: cover posting CRUD and update existing tests to use the ledger 2026-04-17 17:34:53 -06:00