Skip to content

Commit d1acf45

Browse files
test(spp_programs): add manager, payment, and fund tests (406 → 492 tests)
- test_managers.py: new file with 78 tests covering cycle manager, entitlement manager, payment manager, program manager, and deduplication manager (selection refs, state transitions, fund balance, prepare/approve/cancel flows, constraints) - test_payment_and_accounting.py: new file with 27 tests covering spp.payment (creation, status, deletion guards), spp.payment.batch (linking, cascade delete), spp.program.fund (post/cancel/reset state machine, deletion guards), account.journal extensions - test_cycle_auto_approve_fund_check.py: rewritten to use proper approval mixin workflow (submit → review → approve) instead of directly setting states; all 6 fund-check tests now pass
1 parent 48ee09d commit d1acf45

4 files changed

Lines changed: 2232 additions & 155 deletions

File tree

spp_programs/tests/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@
2323
from . import test_entitlement_manager_inkind
2424
from . import test_rejection_wizards
2525
from . import test_program_membership
26-
# test_cycle_auto_approve_fund_check: needs rewrite for approval mixin workflow
26+
from . import test_payment_and_accounting
27+
from . import test_managers
28+
from . import test_cycle_auto_approve_fund_check

0 commit comments

Comments
 (0)