Skip to content
Permalink
Browse files

Add additional output strings to help model making

  • Loading branch information
nirvn committed Jul 22, 2020
1 parent 8c61a80 commit 518cc16e87aba6798658acf75c86f27a0f4d99b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/analysis/testqgsprocessingalgs.cpp
@@ -261,8 +261,8 @@ void TestQgsProcessingAlgs::saveFeaturesAlg()
QVariantMap outputs = saveFeatures->run( parameters, *context, &feedback, &ok );
QCOMPARE( ok, true );
QCOMPARE( outputs.value( QStringLiteral( "OUTPUT" ) ).toString(), QStringLiteral( "%1|layername=%2" ).arg( outputGeoJson, layerName ) );
QCOMPARE( outputs.value( QStringLiteral( "OUTPUT_FILE_PATH" ) ).toString(), outputGeoJson );
QCOMPARE( outputs.value( QStringLiteral( "OUTPUT_LAYER_NAME" ) ).toString(), layerName );
QCOMPARE( outputs.value( QStringLiteral( "FILE_PATH" ) ).toString(), outputGeoJson );
QCOMPARE( outputs.value( QStringLiteral( "LAYER_NAME" ) ).toString(), layerName );

std::unique_ptr< QgsVectorLayer > savedLayer = qgis::make_unique< QgsVectorLayer >( outputs.value( QStringLiteral( "OUTPUT" ) ).toString(), "points", "ogr" );
QVERIFY( savedLayer->isValid() );

0 comments on commit 518cc16

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