docs(xrechnung): complete German reference contract
Module Package Release / publish-packages (push) Successful in 10s
Module Package Release / publish-packages (push) Successful in 10s
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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) == ()
|
||||
Reference in New Issue
Block a user