solidprivacy-nl commited on
Commit
cf426cd
·
1 Parent(s): b669259

Add review guidance tests

Browse files
Files changed (1) hide show
  1. tests/test_review_guidance.py +46 -0
tests/test_review_guidance.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from review_guidance import (
2
+ AI_USAGE_GUIDANCE,
3
+ CANDIDATE_GUIDANCE,
4
+ EXPORT_GUIDANCE,
5
+ FOCUS_FILTER_GUIDANCE,
6
+ REVIEW_INTRO_GUIDANCE,
7
+ TECHNICAL_DETAILS_GUIDANCE,
8
+ review_guidance_items,
9
+ review_guidance_markdown,
10
+ )
11
+
12
+
13
+ def test_review_guidance_explains_checked_rows_are_exported():
14
+ assert "Alleen aangevinkte" in REVIEW_INTRO_GUIDANCE
15
+ assert "exporteert" in REVIEW_INTRO_GUIDANCE
16
+
17
+
18
+ def test_candidate_guidance_explains_manual_review():
19
+ assert "Controle nodig" in CANDIDATE_GUIDANCE
20
+ assert "niet automatisch" in CANDIDATE_GUIDANCE
21
+ assert "handmatig" in CANDIDATE_GUIDANCE
22
+
23
+
24
+ def test_focus_filter_guidance_explains_filter_is_not_export_scope():
25
+ assert "focusfilter" in FOCUS_FILTER_GUIDANCE.lower()
26
+ assert "volledige vervangtabel" in FOCUS_FILTER_GUIDANCE
27
+ assert "export" in FOCUS_FILTER_GUIDANCE
28
+
29
+
30
+ def test_technical_details_guidance_keeps_audit_view_non_primary():
31
+ assert "Technische details" in TECHNICAL_DETAILS_GUIDANCE
32
+ assert "normaal gebruik" in TECHNICAL_DETAILS_GUIDANCE
33
+
34
+
35
+ def test_ai_and_export_guidance_keep_user_control_explicit():
36
+ assert "Gebruik AI pas" in AI_USAGE_GUIDANCE
37
+ assert "Scrub Key" in AI_USAGE_GUIDANCE
38
+ assert "handmatige controle" in EXPORT_GUIDANCE
39
+
40
+
41
+ def test_review_guidance_markdown_contains_all_items_as_bullets():
42
+ items = review_guidance_items()
43
+ markdown = review_guidance_markdown()
44
+ assert len(items) == 5
45
+ for item in items:
46
+ assert f"- {item}" in markdown