Files
govoplan-parties/tests/test_documentation.py
T
zemion b5907e6625
Module Package Release / publish-packages (push) Successful in 11s
docs(parties): complete German public reference
2026-08-22 20:25:26 +02:00

28 lines
889 B
Python

from __future__ import annotations
import unittest
from govoplan_parties.backend.manifest import manifest
class PartiesDocumentationTests(unittest.TestCase):
def test_public_topics_have_complete_german_reference_content(self) -> None:
self.assertEqual(2, len(manifest.documentation))
for topic in manifest.documentation:
translation = topic.translations.get("de", {})
self.assertTrue(
all(translation.get(key) for key in ("title", "summary", "body"))
)
def test_procedure_topic_is_the_field_and_consequence_reference(self) -> None:
topic = next(
item
for item in manifest.documentation
if item.id == "parties.procedure-and-representation"
)
self.assertEqual("reference", topic.metadata.get("kind"))
if __name__ == "__main__":
unittest.main()