Skip to content
Permalink
Browse files

Fix python expression functions

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent 0fbdb04 commit ca5a0bb3deb14b6da01752f50e6857e790f13263
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/core/__init__.py
  2. +1 −1 tests/src/python/test_qgsexpression.py
@@ -84,7 +84,7 @@ def __init__(self, func, name, args, group, helptext='', usesGeometry=True,
self.uses_geometry = usesGeometry
self.referenced_columns = referencedColumns

def func(self, values, context, parent):
def func(self, values, context, parent, node):
feature = None
if context:
feature = context.feature()
@@ -97,7 +97,7 @@ def testAutoArgsAreExpanded(self):
self.assertEqual(args, 3)
values = [1, 2, 3]
exp = QgsExpression("")
result = function.func(values, None, exp)
result = function.func(values, None, exp, None)
# Make sure there is no eval error
self.assertEqual(exp.evalErrorString(), "")
self.assertEqual(result, (1, 2, 3))

0 comments on commit ca5a0bb

Please sign in to comment.
You can’t perform that action at this time.