Skip to content

Commit

Permalink
Remove test case (API is not public anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Apr 17, 2019
1 parent 0d7841a commit 23d6ef6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/src/python/test_qgsvectorlayer.py
Expand Up @@ -57,7 +57,6 @@
QgsTextFormat,
QgsVectorLayerSelectedFeatureSource,
QgsExpression,
QgsCoordinateTransformContext,
NULL)
from qgis.gui import (QgsAttributeTableModel,
QgsGui
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 23d6ef6

Please sign in to comment.