docs: complete public documentation baseline
Module Package Release / publish-packages (push) Successful in 12s
Module Package Release / publish-packages (push) Successful in 12s
This commit is contained in:
@@ -12,6 +12,7 @@ from govoplan_core.core.modules import (
|
||||
)
|
||||
from govoplan_core.core.registry import PlatformRegistry
|
||||
from govoplan_quick_access.backend.db.models import QuickAccessProfile
|
||||
from govoplan_quick_access.backend.manifest import manifest
|
||||
from govoplan_quick_access.backend.service import build_catalogue, resolve_effective
|
||||
|
||||
|
||||
@@ -49,6 +50,31 @@ class QuickAccessTests(unittest.TestCase):
|
||||
def tearDown(self) -> None:
|
||||
self.engine.dispose()
|
||||
|
||||
def test_documentation_has_localized_workflow_and_reference_baselines(self) -> None:
|
||||
topics = {topic.id: topic for topic in manifest.documentation}
|
||||
self.assertTrue(
|
||||
all(
|
||||
all(
|
||||
topic.translations.get("de", {}).get(field)
|
||||
for field in ("title", "summary", "body")
|
||||
)
|
||||
for topic in topics.values()
|
||||
)
|
||||
)
|
||||
workflow = topics["quick-access.user"]
|
||||
self.assertEqual("workflow", workflow.metadata["kind"])
|
||||
self.assertTrue(workflow.conditions)
|
||||
self.assertTrue(
|
||||
all(
|
||||
condition.required_scopes or condition.any_scopes
|
||||
for condition in workflow.conditions
|
||||
)
|
||||
)
|
||||
self.assertEqual(
|
||||
"reference",
|
||||
topics["quick-access.data-subject-requests"].metadata["kind"],
|
||||
)
|
||||
|
||||
def test_catalogue_is_derived_from_manifest_tools(self) -> None:
|
||||
catalogue = build_catalogue(registry_with_tools())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user