Skip to content
Permalink
Browse files

Make Mr. Travis happy

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent 3562af4 commit e025011799db2a3c5691b13c8fdc6c08c5317172
Showing with 6 additions and 4 deletions.
  1. +1 −0 python/core/__init__.py
  2. +2 −2 python/core/qgsfield.sip
  3. +2 −2 src/core/qgsfield.h
  4. +1 −0 tests/src/python/test_qgsdefaultvalue.py
@@ -44,6 +44,7 @@ def _geometryNonZero(self):
def _isValid(self):
return self.isValid()


QgsGeometry.__nonzero__ = _geometryNonZero
QgsGeometry.__bool__ = _geometryNonZero

@@ -191,8 +191,8 @@ Gets variant type of the field as it will be retrieved from data source
void setDefaultValueDefinition( const QgsDefaultValue &defaultValueDefinition );
%Docstring
Sets an expression to use when calculating the default value for the field.
\param expression expression to evaluate when calculating default values for field. Pass
an empty expression to clear the default.
\param defaultValueDefinition expression to evaluate when calculating default values for field. Pass
a default constructed QgsDefaultValue() to reset.
.. versionadded:: 3.0
.. seealso:: defaultValueDefinition()
%End
@@ -203,8 +203,8 @@ class CORE_EXPORT QgsField
QgsDefaultValue defaultValueDefinition() const;

/** Sets an expression to use when calculating the default value for the field.
* \param expression expression to evaluate when calculating default values for field. Pass
* an empty expression to clear the default.
* \param defaultValueDefinition expression to evaluate when calculating default values for field. Pass
* a default constructed QgsDefaultValue() to reset.
* \since QGIS 3.0
* \see defaultValueDefinition()
*/
@@ -40,5 +40,6 @@ def setGetApplyOnUpdate(self):
value.setApplyOnUpdate(True)
self.assertEqual(value.applyOnUpdate(), True)


if __name__ == '__main__':
unittest.main()

0 comments on commit e025011

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