Skip to content
Permalink
Browse files

Fix spatialite provider test data (was missing primary key)

  • Loading branch information
nyalldawson committed Dec 10, 2015
1 parent 54776eb commit 038646170f45d696b71e3e2b70e74b259319abc9
@@ -48,7 +48,7 @@ class TestQgsSpatialiteProvider(TestCase, ProviderTestCase):
def setUpClass(cls):
"""Run before all tests"""
# setup provider for base tests
cls.vl = QgsVectorLayer('dbname=\'{}/provider/spatialite.db\' table="somedata" (geometry) sql='.format(TEST_DATA_DIR), 'test', 'spatialite')
cls.vl = QgsVectorLayer('dbname=\'{}/provider/spatialite.db\' table="somedata" (geom) sql='.format(TEST_DATA_DIR), 'test', 'spatialite')
assert(cls.vl.isValid())
cls.provider = cls.vl.dataProvider()

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

Binary file not shown.

0 comments on commit 0386461

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