-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_pfa_family_case_overlap_doc.py
More file actions
36 lines (26 loc) · 1.04 KB
/
Copy pathtest_pfa_family_case_overlap_doc.py
File metadata and controls
36 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOC = ROOT / "docs" / "pfa-family-case-overlap.md"
def test_pfa_family_case_overlap_explainer_exists_and_covers_core_flags() -> None:
text = DOC.read_text(encoding="utf-8")
required_phrases = [
"independent-analysis concerns",
"independent of, or joined with",
"not binding in a separate parental-rights case",
"determined de novo",
"What the system should flag",
"Reviewer checklist",
"Title 19-A, section 1653",
"Title 19-A, section 4110",
]
for phrase in required_phrases:
assert phrase in text
def test_pfa_family_case_overlap_explainer_is_linked_from_guides() -> None:
guide_paths = [
ROOT / "docs" / "user-guide.md",
ROOT / "docs" / "reviewer-guide.md",
ROOT / "docs" / "attorney-reviewer-guide.md",
]
for guide_path in guide_paths:
assert "pfa-family-case-overlap.md" in guide_path.read_text(encoding="utf-8")