Skip to content
Permalink
Browse files

Fix running processing tests multiple times

  • Loading branch information
nyalldawson committed Nov 23, 2017
1 parent e3198c0 commit 117842802ab9c26c804c2d2b77d270a238336b15
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/src/analysis/testqgsprocessing.cpp
@@ -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() ) );
}

0 comments on commit 1178428

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