feat(campaign): explain governed child access
This commit is contained in:
@@ -105,6 +105,26 @@ def test_attachment_reuse_workflow_documents_policy_and_evidence() -> None:
|
||||
]
|
||||
|
||||
|
||||
def test_access_evidence_reference_documents_independent_owner_boundaries() -> None:
|
||||
from govoplan_campaign.backend.manifest import get_manifest
|
||||
|
||||
topic = next(
|
||||
item for item in get_manifest().documentation
|
||||
if item.id == "campaigns.access.child-evidence"
|
||||
)
|
||||
rendered = f"{topic.summary}\n{topic.body}".lower()
|
||||
for expected in (
|
||||
"governance visibility",
|
||||
"mapping profiles",
|
||||
"validation",
|
||||
"reusable templates",
|
||||
"export packages",
|
||||
"fail closed",
|
||||
):
|
||||
assert expected in rendered
|
||||
assert "campaign.import" in topic.metadata["help_contexts"]
|
||||
|
||||
|
||||
def test_runtime_documentation_is_user_only_and_requires_a_campaign_task() -> None:
|
||||
assert _topics({"docs:documentation:read"}) == ()
|
||||
assert _topics({"campaigns:campaign:read"}, documentation_type="admin") == ()
|
||||
|
||||
Reference in New Issue
Block a user