Skip to content

Commit

Permalink
Add test for spatialite
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent 9384c78 commit ef529b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsproviderconnection_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion tests/src/python/test_qgsproviderconnection_spatialite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ef529b8

Please sign in to comment.