add test for temporary directory output

This commit is contained in:
Alexander Bruy 2019-01-29 12:57:34 +02:00
parent 4b2334ba69
commit d5b42aeec0
2 changed files with 4 additions and 0 deletions

View File

@ -5454,6 +5454,10 @@ void TestQgsProcessing::parameterFolderOut()
QCOMPARE( fromCode->description(), QStringLiteral( "optional" ) );
QCOMPARE( fromCode->flags(), def->flags() );
QCOMPARE( fromCode->defaultValue(), def->defaultValue() );
// temporary directory
def.reset( new QgsProcessingParameterFolderDestination( "junkdir", QString(), QgsProcessing::TEMPORARY_OUTPUT ) );
QCOMPARE( QgsProcessingParameters::parameterAsString( def.get(), params, context ).right( 8 ), QStringLiteral( "/junkdir" ) );
}
void TestQgsProcessing::parameterBand()

Binary file not shown.