Skip to content

Commit 81abdc7

Browse files
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 methods
1 parent 83cd1d6 commit 81abdc7

File tree

3 files changed

+564
-25
lines changed

3 files changed

+564
-25
lines changed

spp_case_base/tests/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
from . import test_case_intervention_plan
55
from . import test_case_intervention
66
from . import test_case_security
7+
from . import test_compliance_generated
8+
from . import test_case_models

0 commit comments

Comments
 (0)