Files
govoplan-dms/tests/test_documentation.py
zemion a7ba1c772d
Module Package Release / publish-packages (push) Successful in 11s
docs(dms): complete German reference contract
2026-08-23 19:31:23 +02:00

17 lines
766 B
Python

from __future__ import annotations
from govoplan_core.core.modules import documentation_structured_translation_issues
from govoplan_dms.backend.manifest import manifest
def test_dms_german_reference_contract_is_complete() -> None:
topics = {topic.id: topic for topic in manifest.documentation}
assert topics["dms.boundary"].metadata["kind"] == "reference"
workflow = topics["dms.dvelop-d3"]
assert workflow.metadata["kind"] == "workflow"
assert workflow.structured_translation_version == "1"
assert "de" in workflow.structured_translations
assert documentation_structured_translation_issues(workflow) == ()
for topic in topics.values():
assert all(topic.translations["de"].get(key) for key in ("title", "summary", "body"))