docs(fit-connect): complete German reference contract
Module Package Release / publish-packages (push) Successful in 11s
Module Package Release / publish-packages (push) Successful in 11s
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_fit_connect.backend.manifest import manifest
|
||||
|
||||
|
||||
def test_fit_connect_german_reference_contract_is_complete() -> None:
|
||||
topics = {topic.id: topic for topic in manifest.documentation}
|
||||
assert topics["fit-connect.boundary"].metadata["kind"] == "reference"
|
||||
workflow = topics["fit-connect.inbound-receipt"]
|
||||
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"))
|
||||
@@ -176,7 +176,7 @@ def test_receipt_from_another_submission_is_rejected() -> None:
|
||||
|
||||
def test_manifest_declares_no_active_target_and_has_german_documentation() -> None:
|
||||
manifest = get_manifest()
|
||||
assert manifest.version == "0.1.19"
|
||||
assert manifest.version == "0.1.20"
|
||||
assert manifest.external_providers[0].id == "fit_connect.submission_api"
|
||||
assert manifest.architecture is not None
|
||||
assert manifest.architecture.target_tested_providers == ()
|
||||
|
||||
Reference in New Issue
Block a user