Skip to content
Permalink
Browse files

Remove test case (API is not public anymore)

  • Loading branch information
elpaso authored and nyalldawson committed Apr 12, 2019
1 parent 0d7841a commit 23d6ef62462b0026965e9b91c76c26b3d76b930d
Showing with 0 additions and 14 deletions.
  1. +0 −14 tests/src/python/test_qgsvectorlayer.py
@@ -57,7 +57,6 @@
QgsTextFormat,
QgsVectorLayerSelectedFeatureSource,
QgsExpression,
QgsCoordinateTransformContext,
NULL)
from qgis.gui import (QgsAttributeTableModel,
QgsGui
@@ -3168,19 +3167,6 @@ def testMaximumValue(self):
pass


class TestQgsVectorLayerTransformContext(unittest.TestCase):

def testTransformContext(self):
vl = QgsVectorLayer(
'Point?crs=epsg:4326&field=pk:integer&field=cnt:integer&field=name:string(0)&field=name2:string(0)&field=num_char:string&key=pk',
'test', 'memory')
ctx = QgsCoordinateTransformContext()
ctx.addSourceDestinationDatumTransform(QgsCoordinateReferenceSystem(4326), QgsCoordinateReferenceSystem(3857), 1234, 1235)
vl.dataProvider().setTransformContext(ctx)
self.assertTrue(vl.isValid())
self.assertEqual(vl.transformContext(), vl.dataProvider().transformContext())
self.assertEqual(list(vl.transformContext().sourceDestinationDatumTransforms().keys())[0], ('EPSG:4326', 'EPSG:3857'))

# TODO:
# - fetch rect: feat with changed geometry: 1. in rect, 2. out of rect
# - more join tests

0 comments on commit 23d6ef6

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