File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
***************************************************************************
4
4
test_qgis_global_settings.py
5
5
---------------------
6
- Date : January 2017
6
+ Date : August 2017
7
7
Copyright : (C) 2017, Jorge Gustavo Rocha
8
8
Email : jgr at geomaster dot pt
9
9
***************************************************************************
@@ -38,15 +38,15 @@ def createXYZLayerFromURL(url):
38
38
class TestQgsGlobalSettings (unittest .TestCase ):
39
39
40
40
def setUp (self ):
41
- qDebug ('QgsApplication.pkgDataPath(): {0}' .format (QgsApplication .pkgDataPath ()))
41
+ # qDebug('QgsApplication.pkgDataPath(): {0}'.format(QgsApplication.pkgDataPath()))
42
42
# Path after deployment
43
43
# QgsSettings.setGlobalSettingsPath(QgsApplication.pkgDataPath() + '/qgis_global_settings.ini')
44
44
# Path before deployment
45
- assert QgsSettings .setGlobalSettingsPath (QgsApplication .pkgDataPath () + '/resources/qgis_global_settings.ini' )
45
+ self . assertTrue ( QgsSettings .setGlobalSettingsPath (QgsApplication .pkgDataPath () + '/resources/qgis_global_settings.ini' ) )
46
46
self .settings = QgsSettings ('testqgissettings' , 'testqgissettings' )
47
47
48
48
def test_global_settings_exist (self ):
49
- qDebug ('settings.allKeys(): {0}' .format (self .settings .allKeys ()))
49
+ # qDebug('settings.allKeys(): {0}'.format(self.settings.allKeys()))
50
50
defaulturl = self .settings .value ('qgis/connections-xyz/OpenStreetMap/url' )
51
51
self .assertEqual (defaulturl , 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png' )
52
52
layer = createXYZLayerFromURL (defaulturl )
You can’t perform that action at this time.
0 commit comments