Skip to content

Commit 3adbed5

Browse files
committedJan 29, 2019
Fix test
1 parent d148690 commit 3adbed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/src/analysis/testqgsprocessing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,7 @@ void TestQgsProcessing::parameterLayerList()
32703270
QCOMPARE( QgsProcessingParameters::parameterAsLayerList( def.get(), params, context ), QList< QgsMapLayer *>() << v1 << r1 );
32713271

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

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

0 commit comments

Comments
 (0)