Skip to content

Commit 52664b6

Browse files
committed
rework server test to use geopackage and qgz
1 parent 2778266 commit 52664b6

7 files changed

+18
-1693
lines changed

tests/src/python/test_qgsserver_wms_getfeatureinfo.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def testGetFeatureInfo(self):
167167
'wms_getfeatureinfo_notvisible',
168168
'test_project_scalevisibility.qgs')
169169

170-
# Test GetFeatureInfo resolves "value map" widget values
171-
mypath = self.testdata_path + "test_project_values.qgs"
170+
# Test GetFeatureInfo resolves "value map" widget values but also Server usage of qgs and gpkg file
171+
mypath = self.testdata_path + "test_project_values.qgz"
172172
self.wms_request_compare('GetFeatureInfo',
173173
'&layers=layer0&styles=&' +
174174
'VERSION=1.3.0&' +
@@ -179,11 +179,11 @@ def testGetFeatureInfo(self):
179179
'&FEATURE_COUNT=10' +
180180
'&QUERY_LAYERS=layer0&I=487&J=308',
181181
'wms_getfeatureinfo-values0-text-xml',
182-
'test_project_values.qgs')
182+
'test_project_values.qgz')
183183

184184
def testGetFeatureInfoValueRelation(self):
185185
"""Test GetFeatureInfo resolves "value relation" widget values. regression 18518"""
186-
mypath = self.testdata_path + "test_project_values.qgs"
186+
mypath = self.testdata_path + "test_project_values.qgz"
187187
self.wms_request_compare('GetFeatureInfo',
188188
'&layers=layer1&styles=&' +
189189
'VERSION=1.3.0&' +
@@ -195,13 +195,13 @@ def testGetFeatureInfoValueRelation(self):
195195
'&WITH_GEOMETRY=True' +
196196
'&QUERY_LAYERS=layer1&I=487&J=308',
197197
'wms_getfeatureinfo-values1-text-xml',
198-
'test_project_values.qgs')
198+
'test_project_values.qgz')
199199

200200
# TODO make GetFeatureInfo show the dictionary values and enable test
201201
@unittest.expectedFailure
202202
def testGetFeatureInfoValueRelationArray(self):
203203
"""Test GetFeatureInfo on "value relation" widget with array field (multiple selections)"""
204-
mypath = self.testdata_path + "test_project_values.qgs"
204+
mypath = self.testdata_path + "test_project_values.qgz"
205205
self.wms_request_compare('GetFeatureInfo',
206206
'&layers=layer3&styles=&' +
207207
'VERSION=1.3.0&' +
@@ -213,13 +213,13 @@ def testGetFeatureInfoValueRelationArray(self):
213213
'&WITH_GEOMETRY=True' +
214214
'&QUERY_LAYERS=layer3&I=487&J=308',
215215
'wms_getfeatureinfo-values3-text-xml',
216-
'test_project_values.qgs')
216+
'test_project_values.qgz')
217217

218218
# TODO make GetFeatureInfo show what's in the display expression and enable test
219219
@unittest.expectedFailure
220220
def testGetFeatureInfoRelationReference(self):
221221
"""Test GetFeatureInfo solves "relation reference" widget "display expression" values"""
222-
mypath = self.testdata_path + "test_project_values.qgs"
222+
mypath = self.testdata_path + "test_project_values.qgz"
223223
self.wms_request_compare('GetFeatureInfo',
224224
'&layers=layer2&styles=&' +
225225
'VERSION=1.3.0&' +
@@ -231,7 +231,7 @@ def testGetFeatureInfoRelationReference(self):
231231
'&WITH_GEOMETRY=True' +
232232
'&QUERY_LAYERS=layer2&I=487&J=308',
233233
'wms_getfeatureinfo-values2-text-xml',
234-
'test_project_values.qgs')
234+
'test_project_values.qgz')
235235

236236
def testGetFeatureInfoFilter(self):
237237
# Test getfeatureinfo response xml

tests/testdata/qgis_server/db.gpkg

96 KB
Binary file not shown.

0 commit comments

Comments
 (0)