Release govoplan-risk-compliance v0.1.21: unify interface contracts and documentation
Module Package Release / publish-packages (push) Successful in 10s
Module Package Release / publish-packages (push) Successful in 10s
This commit is contained in:
@@ -11,7 +11,22 @@ from govoplan_risk_compliance.backend.manifest import manifest
|
||||
|
||||
class RiskComplianceDocumentationTests(unittest.TestCase):
|
||||
def test_public_topics_have_complete_german_reference_content(self) -> None:
|
||||
self.assertEqual(2, len(manifest.documentation))
|
||||
topics = {topic.id: topic for topic in manifest.documentation}
|
||||
self.assertEqual(
|
||||
len(manifest.documentation), len(topics), "Documentation topic IDs must be unique"
|
||||
)
|
||||
self.assertLessEqual(
|
||||
{
|
||||
"risk_compliance.module-boundary",
|
||||
"risk_compliance.data-subject-requests",
|
||||
"risk_compliance.workspace-layout",
|
||||
},
|
||||
set(topics),
|
||||
)
|
||||
self.assertLessEqual(
|
||||
{"user", "admin"},
|
||||
set(topics["risk_compliance.workspace-layout"].documentation_types),
|
||||
)
|
||||
for topic in manifest.documentation:
|
||||
translation = topic.translations.get("de", {})
|
||||
self.assertTrue(
|
||||
|
||||
Reference in New Issue
Block a user