Files
govoplan-connectors/tests/test_documentation_contract.py
T
zemion d86894b321
Module Package Release / publish-packages (push) Successful in 13s
docs(connectors): complete German reference coverage
2026-08-23 21:09:35 +02:00

21 lines
950 B
Python

from govoplan_connectors.backend.manifest import get_manifest
def test_static_documentation_has_complete_german_reference_copy() -> None:
for topic in get_manifest().documentation:
german = topic.translations.get("de", {})
assert all(german.get(field, "").strip() for field in ("title", "summary", "body")), topic.id
def test_documentation_exposes_conditioned_workflow_and_reference() -> None:
topics = {topic.id: topic for topic in get_manifest().documentation}
workflow = topics["connectors.governed-configuration"]
assert workflow.metadata.get("kind") == "workflow"
assert any(condition.required_scopes for condition in workflow.conditions)
reference = topics["connectors.authority-and-effects"]
assert reference.metadata.get("kind") == "reference"
assert reference.metadata.get("fields")
assert reference.metadata.get("consequences")
assert reference.structured_translations.get("de")