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) == ()
|
||||
@@ -154,5 +154,5 @@ def test_technical_failures_never_trust_a_valid_looking_report(
|
||||
|
||||
def test_manifest_does_not_select_an_active_standard_version() -> None:
|
||||
manifest = get_manifest()
|
||||
assert manifest.version == "0.1.20"
|
||||
assert manifest.version == "0.1.21"
|
||||
assert "none is activated by default" in manifest.architecture.known_limits[0].lower()
|
||||
|
||||
Reference in New Issue
Block a user