Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix running processing tests multiple times
  • Loading branch information
nyalldawson committed Nov 23, 2017
1 parent e3198c0 commit 1178428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/analysis/testqgsprocessing.cpp
Expand Up @@ -441,6 +441,10 @@ void TestQgsProcessing::initTestCase()
QCoreApplication::setOrganizationDomain( QStringLiteral( "qgis.org" ) );
QCoreApplication::setApplicationName( QStringLiteral( "QGIS-TEST" ) );

QgsSettings settings;
settings.remove( QStringLiteral( "Processing/DefaultOutputVectorLayerExt" ), QgsSettings::Core );
settings.remove( QStringLiteral( "Processing/DefaultOutputRasterLayerExt" ), QgsSettings::Core );

QgsApplication::processingRegistry()->addProvider( new QgsNativeAlgorithms( QgsApplication::processingRegistry() ) );
}

Expand Down

0 comments on commit 1178428

Please sign in to comment.