Commit 81abdc7
committed
test: add tests for 90%+ coverage on spp_case_base
- Enable test_compliance_generated (1190 lines at 0% coverage) by adding
import to tests/__init__.py
- Fix 21 wrong menu visibility assertions for unrestricted menus (no
groups= attribute) from assertFalse to assertTrue
- Fix _menu_visible helper to check group_ids with has_group() for
proper implied group resolution instead of unreliable search([])
- Add test_case_models.py with 41 tests covering case_assessment,
case_referral, case_note, and case_visit model methods1 parent 83cd1d6 commit 81abdc7
3 files changed
Lines changed: 564 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
0 commit comments