docs(mail): complete German help coverage
Module Package Release / publish-packages (push) Successful in 11s
Module Package Release / publish-packages (push) Successful in 11s
This commit is contained in:
@@ -94,6 +94,34 @@ class MailManifestTests(unittest.TestCase):
|
||||
pop3_topic = topics["mail.workflow.legacy-pop3-import"]
|
||||
self.assertEqual(("user", "admin"), pop3_topic.documentation_types)
|
||||
self.assertIn("mail:pop3:import", pop3_topic.conditions[0].any_scopes)
|
||||
self.assertTrue(
|
||||
{
|
||||
"mail.pop3",
|
||||
"mail.pop3.source-editor",
|
||||
"mail.pop3.action.reload",
|
||||
"mail.pop3.action.save-source",
|
||||
"mail.pop3.action.import",
|
||||
"mail.pop3.field.transport-security",
|
||||
"mail.pop3.field.max-message-size",
|
||||
"mail.pop3.field.password",
|
||||
"mail.pop3.field.delete-after-import",
|
||||
"mail.pop3.confirm-delete-source",
|
||||
}.issubset(pop3_topic.metadata["help_contexts"])
|
||||
)
|
||||
self.assertGreaterEqual(len(pop3_topic.metadata["fields"]), 4)
|
||||
self.assertGreaterEqual(
|
||||
len(pop3_topic.metadata["operational_consequences"]),
|
||||
3,
|
||||
)
|
||||
|
||||
for topic in manifest.documentation:
|
||||
with self.subTest(topic_id=topic.id):
|
||||
german = topic.translations.get("de", {})
|
||||
for attribute in ("title", "summary", "body"):
|
||||
self.assertTrue(
|
||||
str(german.get(attribute, "")).strip(),
|
||||
f"{topic.id} is missing its German {attribute}",
|
||||
)
|
||||
|
||||
pop3_provider = next(
|
||||
item
|
||||
|
||||
Reference in New Issue
Block a user