Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed Jan 29, 2019
1 parent d148690 commit 3adbed503d5c1621d4dc8e4e217ce37835eceaae
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/analysis/testqgsprocessing.cpp
@@ -3270,7 +3270,7 @@ void TestQgsProcessing::parameterLayerList()
QCOMPARE( QgsProcessingParameters::parameterAsLayerList( def.get(), params, context ), QList< QgsMapLayer *>() << v1 << r1 );

pythonCode = def->asPythonString();
QCOMPARE( pythonCode, QStringLiteral( "QgsProcessingParameterMultipleLayers('optional', '', optional=True, layerType=QgsProcessing.TypeMapLayer, defaultValue=['/home/nyall/dev/QGIS/tests/testdata/tenbytenraster.asc'])" ) );
QCOMPARE( pythonCode, QStringLiteral( "QgsProcessingParameterMultipleLayers('optional', '', optional=True, layerType=QgsProcessing.TypeMapLayer, defaultValue=['" ) + r1->publicSource() + "'])" );

code = def->asScriptCode();
QCOMPARE( code, QStringLiteral( "##optional=optional multiple vector " ) + v1->id() + "," + r1->publicSource() );

0 comments on commit 3adbed5

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