Files
zemion c2be55d46e
Module Package Release / publish-packages (push) Successful in 10s
docs(xrechnung): complete German reference contract
2026-08-23 19:31:23 +02:00

17 lines
843 B
Python

from __future__ import annotations
from govoplan_core.core.modules import documentation_structured_translation_issues
from govoplan_xrechnung.backend.manifest import manifest
def test_xrechnung_german_workflow_and_reference_are_complete() -> None:
topics = {topic.id: topic for topic in manifest.documentation}
assert len(topics) == 2
assert topics["xrechnung.inbound-validation"].metadata["kind"] == "workflow"
assert topics["xrechnung.reference.validation-profile-and-handoff"].metadata["kind"] == "reference"
for topic in topics.values():
assert all(topic.translations["de"].get(key) for key in ("title", "summary", "body"))
assert topic.structured_translation_version == "1"
assert "de" in topic.structured_translations
assert documentation_structured_translation_issues(topic) == ()