Skip to content
Permalink
Browse files

Travis fixes

  • Loading branch information
nyalldawson committed Mar 24, 2020
1 parent bff71e4 commit ffda225796bb5c449aabdd02f65f969e7cc245e1
@@ -69,7 +69,8 @@
QgsProcessingParameterWidgetContext,
QgsProcessingContextGenerator,
QgsFindFilesByPatternDialog,
QgsExpressionBuilderDialog
QgsExpressionBuilderDialog,
QgsPanelWidget
)
from qgis.utils import iface

@@ -269,7 +270,7 @@ def populateByExpression(self, adding=False):
self.setRowValue(row, value, context)


class BatchPanel(BASE, WIDGET):
class BatchPanel(QgsPanelWidget, WIDGET):
PARAMETERS = "PARAMETERS"
OUTPUTS = "OUTPUTS"

@@ -33,7 +33,8 @@
QgsProcessingParameterRasterDestination,
QgsProcessingParameterRange,
QgsFeature,
QgsVectorLayer,
QgsProcessingModelAlgorithm,
QgsUnitTypes,
QgsProject)
from qgis.analysis import QgsNativeAlgorithms

@@ -53,7 +54,7 @@ class AlgorithmDialogTest(unittest.TestCase):
def testCreation(self):
alg = QgsApplication.processingRegistry().createAlgorithmById('native:centroids')
a = AlgorithmDialog(alg)
self.assertEqual(a.mainWidget().alg, alg)
self.assertEqual(a.mainWidget().algorithm(), alg)


class WrappersTest(unittest.TestCase):
@@ -261,7 +261,7 @@ def test_feature_source_definition(self):
self.assertEqual(c.source.staticValue(), 'my source')
self.assertTrue(c.selectedFeaturesOnly)
self.assertEqual(c.featureLimit, 27)
self.assertEqual(c.flags, QgsProcessingFeatureSourceDefinition.Flag.FlagCreateIndividualOutputPerInputFeature)
self.assertEqual(int(c.flags), int(QgsProcessingFeatureSourceDefinition.Flag.FlagCreateIndividualOutputPerInputFeature))
self.assertEqual(c.geometryCheck, QgsFeatureRequest.GeometrySkipInvalid)

def test_output_layer_definition(self):

0 comments on commit ffda225

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