mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-13 00:07:27 -05:00
Add extra conformance test to ensure short description does NOT start with "this algorithm"
This commit is contained in:
parent
c46759c6f5
commit
c1f022a16d
@ -773,6 +773,10 @@ class GenericAlgorithmsTest(QgisTestCase):
|
|||||||
".",
|
".",
|
||||||
f'Algorithm {alg.id()} shortDescription does not end with full stop "{alg.shortDescription()}"',
|
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]
|
first_word = alg.shortDescription().split(" ")[0]
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
first_word[-1],
|
first_word[-1],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user