mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Add test
This commit is contained in:
parent
f61fae0cff
commit
3a71f87d0f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user