docs(idm): complete German reference coverage
Module Package Release / publish-packages (push) Successful in 11s
Module Package Release / publish-packages (push) Successful in 11s
This commit is contained in:
@@ -7,6 +7,14 @@ from govoplan_idm.backend.api.v1.routes import ORGANIZATION_IDENTITY_READ_SCOPES
|
||||
|
||||
|
||||
class IdmInterfaceDocumentationContractTests(unittest.TestCase):
|
||||
def test_all_static_topics_have_complete_german_content(self) -> None:
|
||||
for topic in manifest.documentation:
|
||||
german = (topic.translations or {}).get("de", {})
|
||||
self.assertEqual({"title", "summary", "body"}, set(german), topic.id)
|
||||
self.assertTrue(
|
||||
all(str(value).strip() for value in german.values()), topic.id
|
||||
)
|
||||
|
||||
def test_route_and_contributed_action_remain_declared(self) -> None:
|
||||
frontend = manifest.frontend
|
||||
self.assertIsNotNone(frontend)
|
||||
@@ -54,8 +62,13 @@ class IdmInterfaceDocumentationContractTests(unittest.TestCase):
|
||||
"idm.typed-groups.action.resolve-memberships",
|
||||
relationships.metadata["help_contexts"],
|
||||
)
|
||||
self.assertIn("Revocation immediately", relationships.metadata["consequences"][2])
|
||||
self.assertIn("Access permissions remain unchanged", relationships.metadata["verification"])
|
||||
self.assertIn(
|
||||
"Revocation immediately", relationships.metadata["consequences"][2]
|
||||
)
|
||||
self.assertIn(
|
||||
"Access permissions remain unchanged",
|
||||
relationships.metadata["verification"],
|
||||
)
|
||||
|
||||
def test_relationship_writers_may_use_identity_search_selectors(self) -> None:
|
||||
self.assertIn("idm:relationship:write", ORGANIZATION_IDENTITY_READ_SCOPES)
|
||||
|
||||
Reference in New Issue
Block a user