Skip to content
Permalink
Browse files

Add unit test for application/geo+json format

  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 80f3334 commit 3b452869ea1f135f1b9f666a932f5def2c994a5b
Showing with 10 additions and 1 deletion.
  1. +10 −1 tests/src/python/test_qgsserver_wms_getfeatureinfo.py
@@ -433,7 +433,7 @@ def testGetFeatureInfoTolerance(self):
'test_project_values.qgz')

def testGetFeatureInfoJSON(self):
# simple test without geometry
# simple test without geometry and info_format=application/json
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
'info_format=application%2Fjson&transparent=true&' +
@@ -442,6 +442,15 @@ def testGetFeatureInfoJSON(self):
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320',
'wms_getfeatureinfo_json')

# simple test without geometry and info_format=application/geo+json
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
'info_format=application%2Fgeo+json&transparent=true&' +
'width=600&height=400&srs=EPSG%3A3857&bbox=913190.6389747962%2C' +
'5606005.488876367%2C913235.426296057%2C5606035.347090538&' +
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320',
'wms_getfeatureinfo_json')

# test with several features and several layers
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9,fields_alias,exclude_attribute&styles=&' +

0 comments on commit 3b45286

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