18
18
import tempfile
19
19
20
20
from osgeo import gdal , ogr # NOQA
21
- from qgis .core import (QgsFeature , QgsFeatureRequest , QgsSettings ,
21
+ from qgis .core import (QgsFeature , QgsFeatureRequest , QgsSettings , QgsDataProvider ,
22
22
QgsVectorDataProvider , QgsVectorLayer , QgsWkbTypes , QgsNetworkAccessManager )
23
23
from qgis .testing import start_app , unittest
24
24
@@ -111,7 +111,7 @@ def testMixOfPolygonCurvePolygon(self):
111
111
vl = QgsVectorLayer ('{}|layerid=0' .format (datasource ), 'test' , 'ogr' )
112
112
self .assertTrue (vl .isValid ())
113
113
self .assertEqual (len (vl .dataProvider ().subLayers ()), 1 )
114
- self .assertEqual (vl .dataProvider ().subLayers ()[0 ], '0: testMixOfPolygonCurvePolygon:4: CurvePolygon:' )
114
+ self .assertEqual (vl .dataProvider ().subLayers ()[0 ], QgsDataProvider . SUBLAYER_SEPARATOR . join ([ '0' , ' testMixOfPolygonCurvePolygon' , '4' , ' CurvePolygon' , '' ]) )
115
115
116
116
def testMixOfLineStringCompoundCurve (self ):
117
117
@@ -127,7 +127,7 @@ def testMixOfLineStringCompoundCurve(self):
127
127
vl = QgsVectorLayer ('{}|layerid=0' .format (datasource ), 'test' , 'ogr' )
128
128
self .assertTrue (vl .isValid ())
129
129
self .assertEqual (len (vl .dataProvider ().subLayers ()), 1 )
130
- self .assertEqual (vl .dataProvider ().subLayers ()[0 ], '0: testMixOfLineStringCompoundCurve:5: CompoundCurve:' )
130
+ self .assertEqual (vl .dataProvider ().subLayers ()[0 ], QgsDataProvider . SUBLAYER_SEPARATOR . join ([ '0' , ' testMixOfLineStringCompoundCurve' , '5' , ' CompoundCurve' , '' ]) )
131
131
132
132
def testGpxElevation (self ):
133
133
# GPX without elevation data
0 commit comments