Skip to content
Browse files

Update PyQgsPythonProvider test

  • Loading branch information
rldhont committed Sep 9, 2020
1 parent 74ffc1a commit 02cff9fdaec3b1ad4cdcc75de569aea43a87cc4e
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/src/python/
@@ -195,12 +195,12 @@ def description(cls):
return 'Python Test Provider'

def createProvider(cls, uri, providerOptions):
return PyProvider(uri, providerOptions)
def createProvider(cls, uri, providerOptions, flags=QgsDataProvider.ReadFlags()):
return PyProvider(uri, providerOptions, flags)

# Implementation of functions from QgsVectorDataProvider

def __init__(self, uri='', providerOptions=QgsDataProvider.ProviderOptions()):
def __init__(self, uri='', providerOptions=QgsDataProvider.ProviderOptions(), flags=QgsDataProvider.ReadFlags()):
# Use the memory layer to parse the uri
mlayer = QgsVectorLayer(uri, 'ml', 'memory')
@@ -215,6 +215,7 @@ def __init__(self, uri='', providerOptions=QgsDataProvider.ProviderOptions()):
self._crs =
self._spatialindex = None
self._provider_options = providerOptions
self._flags = flags
if 'index=yes' in self._uri:

0 comments on commit 02cff9f

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