Skip to content
Permalink
Browse files

Test data providers loading, finally :)

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@303 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com
cpolymeris@gmail.com committed Jul 21, 2012
1 parent fa4092f commit 8175f515d1f764988f0d1ef09f88e242823cb771
Showing with 5 additions and 6 deletions.
  1. +2 −5 src/sextante/tests/qgis_interface.py
  2. +1 −1 src/sextante/tests/runtests.sh
  3. +2 −0 src/sextante/tests/utilities_test.py
@@ -39,11 +39,8 @@ def __init__(self, canvas):
"""Constructor"""
QObject.__init__(self)
self.canvas = canvas
QgsProviderRegistry.instance()
self.testRaster = QgsRasterLayer('data/raster', "test raster")
self.testVector = QgsVectorLayer('data/vector', "test vector")
self.testRaster.dataProvider = lambda: QgsProviderRegistry.instance().provider('ogr','data/raster')
self.testVector.dataProvider = lambda: QgsProviderRegistry.instance().provider('gdal','data/vector')
self.testRaster = QgsRasterLayer('data/raster', "raster")
self.testVector = QgsVectorLayer('data/vector', "vector", 'ogr')

def zoomFull(self):
"""Zoom to the map full extent"""
@@ -1 +1 @@
PYTHONPATH=~/Proyectos/qgis/output/python/:~/Proyectos/qgis/python/plugins/ python test.py $@
QGISPATH=/usr/local PYTHONPATH=~/Proyectos/qgis/output/python/:~/Proyectos/qgis/python/plugins/ python test.py $@
@@ -43,6 +43,8 @@ def getQgisTestApp():
myPath = os.environ['QGISPATH']
myUseDefaultPathFlag = True
QGISAPP.setPrefixPath(myPath, myUseDefaultPathFlag)
else:
print "Warning: QGISPATH is not set"

QGISAPP.initQgis()
s = QGISAPP.showSettings()

0 comments on commit 8175f51

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