Skip to content

Commit 48ee09d

Browse files
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/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121
from . import test_entitlement_amount_cel_advanced
2222
from . import test_entitlement_condition_cel
2323
from . import test_entitlement_manager_inkind
24+
from . import test_rejection_wizards
25+
from . import test_program_membership
2426
# test_cycle_auto_approve_fund_check: needs rewrite for approval mixin workflow

0 commit comments

Comments
 (0)