mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Update test_qgsexpression.py
Update test_qgsexpression.py for new help text template
This commit is contained in:
parent
d6c8e2e7a7
commit
0c488cc718
@ -120,13 +120,13 @@ class TestQgsExpressionCustomFunctions(unittest.TestCase):
|
||||
"""Test help about python function."""
|
||||
QgsExpression.registerFunction(self.help_with_variable)
|
||||
html = (
|
||||
"<h3>help_with_variable function</h3><br>" "The help comes from a variable."
|
||||
"<h3>function help_with_variable</h3>\n" "The help comes from a variable."
|
||||
)
|
||||
self.assertEqual(self.help_with_variable.helpText(), html)
|
||||
|
||||
QgsExpression.registerFunction(self.help_with_docstring)
|
||||
html = (
|
||||
"<h3>help_with_docstring function</h3><br>"
|
||||
"<h3>function help_with_docstring</h3>\n"
|
||||
"The help comes from the python docstring."
|
||||
)
|
||||
self.assertEqual(self.help_with_docstring.helpText(), html)
|
||||
|
Loading…
x
Reference in New Issue
Block a user