Add debug output to spatialite test

This commit is contained in:
Matthias Kuhn 2017-10-17 00:46:36 +02:00
parent 262836d5fd
commit 9ff66936cd

View File

@ -62,6 +62,7 @@ class TestQgsSpatialiteProvider(unittest.TestCase, ProviderTestCase):
@classmethod
def setUpClass(cls):
"""Run before all tests"""
print(' ### Setup Spatialite Provider Test Class')
# setup provider for base tests
cls.vl = QgsVectorLayer('dbname=\'{}/provider/spatialite.db\' table="somedata" (geom) sql='.format(TEST_DATA_DIR), 'test', 'spatialite')
assert(cls.vl.isValid())
@ -160,6 +161,8 @@ class TestQgsSpatialiteProvider(unittest.TestCase, ProviderTestCase):
@classmethod
def tearDownClass(cls):
"""Run after all tests"""
print(' ### Tear Down Spatialite Provider Test Class')
# for the time being, keep the file to check with qgis
# if os.path.exists(cls.dbname) :
# os.remove(cls.dbname)