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

17 lines
779 B
Python

from __future__ import annotations
from govoplan_core.core.modules import documentation_structured_translation_issues
from govoplan_erp.backend.manifest import manifest
def test_erp_german_reference_contract_is_complete() -> None:
topics = {topic.id: topic for topic in manifest.documentation}
assert topics["erp.boundary"].metadata["kind"] == "reference"
workflow = topics["erp.payable-reconciliation"]
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"))