Skip to content

Commit

Permalink
Fix python test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 2, 2017
1 parent a9d7630 commit 881dfef
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion tests/src/python/offlineditingtestbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from qgis.core import (
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsFeatureRequest,
QgsExpression,
QgsProject,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_layer_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
QgsSnappingConfig,
QgsTolerance,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsFeature,
QgsGeometry,
QgsLayerDefinition,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
QgsField,
QgsFields,
QgsLayerDefinition,
QgsPoint,
QgsPointXY,
QgsReadWriteContext,
QgsVectorLayer,
QgsFeatureRequest,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_spatialite.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from qgis.core import (QgsVectorLayer,
QgsVectorDataProvider,
QgsPoint,
QgsPointXY,
QgsFeature,
QgsGeometry,
QgsProject,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
QgsFeature,
QgsGeometry,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsVectorDataProvider,
QgsFeatureRequest,
QgsApplication,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsatlascomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsattributetablemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from qgis.core import (
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsVectorLayer,
QgsVectorLayerCache
)
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsbox3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import qgis # NOQA

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

Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgscomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from qgis.PyQt.QtXml import QDomDocument

from qgis.core import (QgsComposition,
QgsPoint,
QgsPointXY,
QgsRasterLayer,
QgsMultiBandColorRenderer,
QgsProject)
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsdistancearea.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import math

from qgis.core import (QgsGeometry,
QgsPoint,
QgsPointXY,
QgsDistanceArea,
QgsCoordinateReferenceSystem,
QgsUnitTypes
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgseditwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsfeaturesink.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField,
QgsFields,
QgsCoordinateReferenceSystem,
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsgeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
QgsGeometry,
QgsVectorLayer,
QgsFeature,
QgsPointXY,
QgsPoint,
QgsPointV2,
QgsCircularString,
QgsCompoundCurve,
QgsCurvePolygon,
Expand Down Expand Up @@ -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),
]

Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsgraduatedsymbolrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsReadWriteContext,
QgsRenderContext
)
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsissue7244.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsjsonutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
QgsFields,
QgsWkbTypes,
QgsGeometry,
QgsPointV2,
QgsPoint,
QgsLineString,
NULL,
QgsVectorLayer,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsmapcanvasannotationitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from qgis.core import (QgsTextAnnotation,
QgsCoordinateReferenceSystem,
QgsRectangle,
QgsPoint,
QgsPointXY,
QgsVectorLayer,
QgsFeature,
QgsGeometry,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrangewidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrasterlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
QgsContrastEnhancement,
QgsProject,
QgsMapSettings,
QgsPoint,
QgsPointXY,
QgsRasterMinMaxOrigin,
QgsRasterShader,
QgsRasterTransparency,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrelation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
QgsFeature,
QgsRelation,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsProject
)
from qgis.testing import start_app, unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_wfst.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsRectangle,
QgsFeatureRequest,
QgsExpression,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgssymbollayer_readsld.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
QgsFeature,
QgsGeometry,
QgsUnitTypes,
QgsPoint,
QgsPointXY,
QgsSvgMarkerSymbolLayer,
QgsEllipseSymbolLayer,
QgsSimpleFillSymbolLayer,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorfilewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
QgsFeature,
QgsField,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsCoordinateReferenceSystem,
QgsVectorFileWriter,
QgsFeatureRequest,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorfilewritertask.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsVectorFileWriter,
QgsVectorFileWriterTask
)
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsvectorlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
QgsFeature,
QgsFeatureRequest,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField,
QgsFieldConstraints,
QgsFields,
Expand All @@ -40,7 +40,7 @@
QgsProject,
QgsUnitTypes,
QgsAggregateCalculator,
QgsPointV2,
QgsPoint,
QgsExpressionContext,
QgsExpressionContextScope,
QgsExpressionContextUtils,
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorlayereditbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from qgis.core import (QgsVectorLayer,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
QgsField)
from qgis.testing import start_app, unittest
start_app()
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorlayerutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
QgsFieldConstraints,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsPointXY,
NULL
)
from qgis.testing import start_app, unittest
Expand Down

0 comments on commit 881dfef

Please sign in to comment.