docs(erp): 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_erp.backend.manifest import manifest
|
||||
|
||||
|
||||
def test_erp_german_reference_contract_is_complete() -> None:
|
||||
topics = {topic.id: topic for topic in manifest.documentation}
|
||||
assert topics["erp.boundary"].metadata["kind"] == "reference"
|
||||
workflow = topics["erp.payable-reconciliation"]
|
||||
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"))
|
||||
@@ -129,7 +129,7 @@ def test_unknown_or_wrong_plan_observation_is_quarantined() -> None:
|
||||
|
||||
def test_manifest_documents_unconfigured_provider_and_german_workflow() -> None:
|
||||
manifest = get_manifest()
|
||||
assert manifest.version == "0.1.19"
|
||||
assert manifest.version == "0.1.20"
|
||||
assert manifest.external_providers[0].id == "erp.payables_target"
|
||||
assert manifest.architecture is not None
|
||||
assert manifest.architecture.target_tested_providers == ()
|
||||
|
||||
Reference in New Issue
Block a user