Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored Feb 12, 2025
1 parent fedd040 commit ebbd9ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/analysis/testqgsprocessingalgspt2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,14 @@ void TestQgsProcessingAlgsPt2::fileDownloader()
QVERIFY( ok );
// verify that temporary outputs have the URL file extension appended
QVERIFY( results.value( QStringLiteral( "OUTPUT" ) ).toString().endsWith( QLatin1String( ".txt" ) ) );

const QString outputFileName = QgsProcessingUtils::generateTempFilename( QStringLiteral( "qgis_version.txt" ), *context );
parameters.insert( QStringLiteral( "OUTPUT" ), outputFileName );

results = alg->run( parameters, *context, &feedback, &ok );
QVERIFY( ok );
// compare result filename is the same as provided
QCOMPARE( outputFileName, results.value( QStringLiteral( "OUTPUT" ) ).toString() );
}

void TestQgsProcessingAlgsPt2::rasterize()
Expand Down

0 comments on commit ebbd9ee

Please sign in to comment.