Skip to content
Permalink
Browse files

add test for temporary directory output

  • Loading branch information
alexbruy committed Jan 29, 2019
1 parent 4b2334b commit d5b42aeec01f97f9f0353443146b8d93a92239e6
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/src/analysis/testqgsprocessing.cpp
  2. BIN tests/testdata/points_gpkg.gpkg
@@ -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()
BIN +0 Bytes (100%) tests/testdata/points_gpkg.gpkg
Binary file not shown.

0 comments on commit d5b42ae

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