mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix processing tests
This commit is contained in:
parent
cc5f7b1dfb
commit
54f8825350
@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
from qgis.testing import start_app, unittest
|
||||
from qgis.core import QgsApplication
|
||||
from qgis.analysis import QgsNativeAlgorithms
|
||||
|
||||
from processing.gui.AlgorithmDialog import AlgorithmDialog
|
||||
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
|
||||
@ -34,6 +35,7 @@ from processing.modeler.ModelerParametersDialog import ModelerParametersDialog
|
||||
from processing.gui.wrappers import *
|
||||
|
||||
start_app()
|
||||
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
|
||||
|
||||
|
||||
class AlgorithmDialogTest(unittest.TestCase):
|
||||
|
@ -16,7 +16,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef QGSALGORITHMASSIGNPROJECTION_H
|
||||
#define QGSALGORITHMASSIGNPROJECTION_HH
|
||||
#define QGSALGORITHMASSIGNPROJECTION_H
|
||||
|
||||
#define SIP_NO_FILE
|
||||
|
||||
|
@ -12,9 +12,12 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src/core/expression
|
||||
${CMAKE_SOURCE_DIR}/src/core/geometry
|
||||
${CMAKE_SOURCE_DIR}/src/core/metadata
|
||||
${CMAKE_SOURCE_DIR}/src/core/processing
|
||||
${CMAKE_SOURCE_DIR}/src/core/processing/models
|
||||
${CMAKE_SOURCE_DIR}/src/core/raster
|
||||
${CMAKE_SOURCE_DIR}/src/core/symbology
|
||||
${CMAKE_SOURCE_DIR}/src/analysis
|
||||
${CMAKE_SOURCE_DIR}/src/analysis/processing
|
||||
${CMAKE_SOURCE_DIR}/src/analysis/vector
|
||||
${CMAKE_SOURCE_DIR}/src/analysis/raster
|
||||
${CMAKE_SOURCE_DIR}/src/test
|
||||
@ -64,6 +67,7 @@ ENDMACRO (ADD_QGIS_TEST)
|
||||
# Tests:
|
||||
SET(TESTS
|
||||
testqgsgeometrysnapper.cpp
|
||||
testqgsprocessing.cpp
|
||||
testqgszonalstatistics.cpp
|
||||
testqgsrastercalculator.cpp
|
||||
testqgsalignraster.cpp
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "qgsprocessingalgorithm.h"
|
||||
#include "qgsprocessingcontext.h"
|
||||
#include "qgsprocessingmodelalgorithm.h"
|
||||
#include "qgsnativealgorithms.h"
|
||||
#include <QObject>
|
||||
#include <QtTest/QSignalSpy>
|
||||
#include "qgis.h"
|
||||
@ -368,6 +369,8 @@ void TestQgsProcessing::initTestCase()
|
||||
QCoreApplication::setOrganizationName( QStringLiteral( "QGIS" ) );
|
||||
QCoreApplication::setOrganizationDomain( QStringLiteral( "qgis.org" ) );
|
||||
QCoreApplication::setApplicationName( QStringLiteral( "QGIS-TEST" ) );
|
||||
|
||||
QgsApplication::processingRegistry()->addProvider( new QgsNativeAlgorithms( QgsApplication::processingRegistry() ) );
|
||||
}
|
||||
|
||||
void TestQgsProcessing::cleanupTestCase()
|
@ -161,7 +161,6 @@ SET(TESTS
|
||||
testqgspointlocator.cpp
|
||||
testqgspointpatternfillsymbol.cpp
|
||||
testqgspoint.cpp
|
||||
testqgsprocessing.cpp
|
||||
testqgsproject.cpp
|
||||
testqgsproperty.cpp
|
||||
testqgis.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user