Commit 48ee09d
committed
test(spp_programs): add core model and wizard tests (254 → 406 tests)
Add comprehensive test coverage for the biggest gaps:
- test_cycle.py: +37 tests for cycle workflow (state transitions,
computed fields, prepare_entitlement, submit/approve/reject,
unlink restrictions, UI actions, legacy aliases)
- test_programs.py: +30 tests for program model (manager setup,
get_manager, create_new_cycle, enrollment hooks, fund balance,
beneficiary queries, manager constraints)
- test_program_membership.py: new file with 23 tests (state
transitions, enrollment/exit dates, duplicate prevention,
unlink restrictions, deduplication status, cycle membership)
- test_rejection_wizards.py: new file with 10 tests (cash/inkind
rejection, reset-to-pending, rejection reason, state guards)1 parent 0f7891e commit 48ee09d
5 files changed
Lines changed: 2708 additions & 2 deletions
File tree
- spp_programs/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
0 commit comments