Skip to content
Permalink
Browse files
Add test for spatialite
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent 9384c78 commit ef529b879eee8a233d7b91cc03e6cdf644c461a5
@@ -522,13 +522,13 @@ def testCreateSqlVectorLayer(self):

try:
schema = getattr(self, 'sqlVectorLayerSchema')
except:
except: # noqa: E722
print(f"FIXME: {self.providerKey} data provider test case does not define self.sqlVectorLayerSchema for query layers test!")
return

try:
table = getattr(self, 'sqlVectorLayerTable')
except:
except: # noqa: E722
print(f"FIXME: {self.providerKey} data provider test case does not define self.sqlVectorLayerTable for query layers test!")
return

@@ -50,7 +50,11 @@ class TestPyQgsProviderConnectionSpatialite(unittest.TestCase, TestPyQgsProvider
SELECT i FROM r
LIMIT 10000000
)
SELECT i FROM r WHERE i = 1;"""
SELECT i FROM r WHERE i = 1; """

# Provider test cases can define a schema and table name for SQL query layers test
sqlVectorLayerSchema = ''
sqlVectorLayerTable = 'cdb_lines'

@classmethod
def setUpClass(cls):

0 comments on commit ef529b8

Please sign in to comment.