Add extra conformance test to ensure short description does NOT start with "this algorithm"

This commit is contained in:
Nyall Dawson 2025-05-16 09:13:57 +10:00
parent c46759c6f5
commit c1f022a16d

View File

@ -773,6 +773,10 @@ class GenericAlgorithmsTest(QgisTestCase):
".",
f'Algorithm {alg.id()} shortDescription does not end with full stop "{alg.shortDescription()}"',
)
self.assertFalse(
alg.shortDescription().lower().startswith("this algorithm"),
f'Algorithm {alg.id()} shortDescription should NOT start with eg "This algorithm computes...", just use "Compute..." instead: "{alg.shortDescription()}"',
)
first_word = alg.shortDescription().split(" ")[0]
self.assertEqual(
first_word[-1],