Skip to content

Commit 0386461

Browse files
committedDec 10, 2015
Fix spatialite provider test data (was missing primary key)
1 parent 54776eb commit 0386461

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎tests/src/python/test_provider_spatialite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TestQgsSpatialiteProvider(TestCase, ProviderTestCase):
4848
def setUpClass(cls):
4949
"""Run before all tests"""
5050
# setup provider for base tests
51-
cls.vl = QgsVectorLayer('dbname=\'{}/provider/spatialite.db\' table="somedata" (geometry) sql='.format(TEST_DATA_DIR), 'test', 'spatialite')
51+
cls.vl = QgsVectorLayer('dbname=\'{}/provider/spatialite.db\' table="somedata" (geom) sql='.format(TEST_DATA_DIR), 'test', 'spatialite')
5252
assert(cls.vl.isValid())
5353
cls.provider = cls.vl.dataProvider()
5454

@@ -111,7 +111,7 @@ def setUpClass(cls):
111111
def tearDownClass(cls):
112112
"""Run after all tests"""
113113
# for the time being, keep the file to check with qgis
114-
#if os.path.exists(cls.dbname) :
114+
# if os.path.exists(cls.dbname) :
115115
# os.remove(cls.dbname)
116116
pass
117117

‎tests/testdata/provider/spatialite.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.