Skip to content
Permalink
Browse files

Fix python test imports

  • Loading branch information
m-kuhn committed Jun 2, 2017
1 parent a9d7630 commit 881dfef3c9594a065e30ffc4ecae4a0a83964c04
@@ -32,7 +32,7 @@
from qgis.core import (
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsFeatureRequest,
QgsExpression,
QgsProject,
@@ -22,7 +22,7 @@
QgsSnappingConfig,
QgsTolerance,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsFeature,
QgsGeometry,
QgsLayerDefinition,
@@ -17,7 +17,7 @@
QgsField,
QgsFields,
QgsLayerDefinition,
QgsPoint,
QgsPointXY,
QgsReadWriteContext,
QgsVectorLayer,
QgsFeatureRequest,
@@ -21,7 +21,7 @@

from qgis.core import (QgsVectorLayer,
QgsVectorDataProvider,
QgsPoint,
QgsPointXY,
QgsFeature,
QgsGeometry,
QgsProject,
@@ -28,7 +28,7 @@
QgsFeature,
QgsGeometry,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsVectorDataProvider,
QgsFeatureRequest,
QgsApplication,
@@ -24,7 +24,7 @@
from qgis.PyQt.QtCore import QFileInfo, QRectF, qWarning
from qgis.core import QgsVectorLayer, QgsProject, QgsCoordinateReferenceSystem, \
QgsComposition, QgsFillSymbol, QgsSingleSymbolRenderer, QgsComposerLabel, QgsComposerMap, QgsFontUtils, \
QgsRectangle, QgsComposerLegend, QgsFeature, QgsGeometry, QgsPoint, QgsRendererCategory, QgsCategorizedSymbolRenderer, QgsMarkerSymbol
QgsRectangle, QgsComposerLegend, QgsFeature, QgsGeometry, QgsPointXY, QgsRendererCategory, QgsCategorizedSymbolRenderer, QgsMarkerSymbol
from qgscompositionchecker import QgsCompositionChecker

start_app()
@@ -19,7 +19,7 @@
from qgis.core import (
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsVectorLayer,
QgsVectorLayerCache
)
@@ -15,8 +15,8 @@
import qgis # NOQA

from qgis.core import (QgsBox3d,
QgsPointXY,
QgsPoint,
QgsPointV2,
QgsWkbTypes,
QgsRectangle)

@@ -20,7 +20,7 @@
from qgis.PyQt.QtXml import QDomDocument

from qgis.core import (QgsComposition,
QgsPoint,
QgsPointXY,
QgsRasterLayer,
QgsMultiBandColorRenderer,
QgsProject)
@@ -16,7 +16,7 @@
import math

from qgis.core import (QgsGeometry,
QgsPoint,
QgsPointXY,
QgsDistanceArea,
QgsCoordinateReferenceSystem,
QgsUnitTypes
@@ -14,7 +14,7 @@

import qgis # NOQA

from qgis.core import (QgsProject, QgsFeature, QgsGeometry, QgsPoint, QgsVectorLayer, NULL, QgsField)
from qgis.core import (QgsProject, QgsFeature, QgsGeometry, QgsPointXY, QgsVectorLayer, NULL, QgsField)
from qgis.gui import QgsGui

from qgis.testing import start_app, unittest
@@ -15,7 +15,7 @@
import qgis # NOQA

import os
from qgis.core import QgsFeature, QgsGeometry, QgsPoint, QgsVectorLayer, NULL, QgsFields, QgsField
from qgis.core import QgsFeature, QgsGeometry, QgsPointXY, QgsVectorLayer, NULL, QgsFields, QgsField
from qgis.testing import start_app, unittest
from utilities import unitTestDataPath

@@ -19,7 +19,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField,
QgsFields,
QgsCoordinateReferenceSystem,
@@ -20,8 +20,8 @@
QgsGeometry,
QgsVectorLayer,
QgsFeature,
QgsPointXY,
QgsPoint,
QgsPointV2,
QgsCircularString,
QgsCompoundCurve,
QgsCurvePolygon,
@@ -1936,7 +1936,7 @@ def testTypeInformation(self):
(QgsMultiPointV2, "MultiPoint", QgsWkbTypes.MultiPoint),
(QgsMultiPolygonV2, "MultiPolygon", QgsWkbTypes.MultiPolygon),
(QgsMultiSurface, "MultiSurface", QgsWkbTypes.MultiSurface),
(QgsPointV2, "Point", QgsWkbTypes.Point),
(QgsPoint, "Point", QgsWkbTypes.Point),
(QgsPolygonV2, "Polygon", QgsWkbTypes.Polygon),
]

@@ -23,7 +23,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsReadWriteContext,
QgsRenderContext
)
@@ -16,7 +16,7 @@

import os

from qgis.core import QgsPoint, QgsVectorLayer
from qgis.core import QgsPointXY, QgsVectorLayer

from qgis.testing import start_app, unittest

@@ -24,7 +24,7 @@
QgsFields,
QgsWkbTypes,
QgsGeometry,
QgsPointV2,
QgsPoint,
QgsLineString,
NULL,
QgsVectorLayer,
@@ -17,7 +17,7 @@
from qgis.core import (QgsTextAnnotation,
QgsCoordinateReferenceSystem,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsVectorLayer,
QgsFeature,
QgsGeometry,
@@ -14,7 +14,7 @@

import qgis # NOQA

from qgis.core import QgsFeature, QgsGeometry, QgsPoint, QgsVectorLayer, NULL
from qgis.core import QgsFeature, QgsGeometry, QgsPointXY, QgsVectorLayer, NULL
from qgis.gui import QgsGui
from qgis.testing import start_app, unittest

@@ -28,7 +28,7 @@
QgsContrastEnhancement,
QgsProject,
QgsMapSettings,
QgsPoint,
QgsPointXY,
QgsRasterMinMaxOrigin,
QgsRasterShader,
QgsRasterTransparency,
@@ -18,7 +18,7 @@
QgsFeature,
QgsRelation,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsProject
)
from qgis.testing import start_app, unittest
@@ -46,7 +46,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsRectangle,
QgsFeatureRequest,
QgsExpression,
@@ -32,7 +32,7 @@
QgsFeature,
QgsGeometry,
QgsUnitTypes,
QgsPoint,
QgsPointXY,
QgsSvgMarkerSymbolLayer,
QgsEllipseSymbolLayer,
QgsSimpleFillSymbolLayer,
@@ -21,7 +21,7 @@
QgsFeature,
QgsField,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsCoordinateReferenceSystem,
QgsVectorFileWriter,
QgsFeatureRequest,
@@ -20,7 +20,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsVectorFileWriter,
QgsVectorFileWriterTask
)
@@ -28,7 +28,7 @@
QgsFeature,
QgsFeatureRequest,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField,
QgsFieldConstraints,
QgsFields,
@@ -40,7 +40,7 @@
QgsProject,
QgsUnitTypes,
QgsAggregateCalculator,
QgsPointV2,
QgsPoint,
QgsExpressionContext,
QgsExpressionContextScope,
QgsExpressionContextUtils,
@@ -19,7 +19,7 @@
from qgis.core import (QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField)
from qgis.testing import start_app, unittest
start_app()
@@ -19,7 +19,7 @@
QgsFieldConstraints,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
NULL
)
from qgis.testing import start_app, unittest

0 comments on commit 881dfef

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