mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Add unit test for application/geo+json format
This commit is contained in:
parent
80f33343f6
commit
3b452869ea
@ -433,7 +433,7 @@ class TestQgsServerWMSGetFeatureInfo(TestQgsServerWMSTestBase):
|
||||
'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 @@ class TestQgsServerWMSGetFeatureInfo(TestQgsServerWMSTestBase):
|
||||
'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=&' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user