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) == ()