Skip to content
Permalink
Browse files

Add unit test for getfeatureinfo with alias in json

  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 3f38365 commit 62f77629b0022a55959b26e21ccf17e1b899bcc1
@@ -424,6 +424,7 @@ def testGetFeatureInfoTolerance(self):
'test_project_values.qgz')

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

# test with alias
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9%202&styles=&' +
'info_format=application%2Fjson&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%202&X=190&Y=320',
'wms_getfeatureinfo_alias_json')

def testGetFeatureInfoPostgresTypes(self):
# compare json list output with file
self.wms_request_compare('GetFeatureInfo',

0 comments on commit 62f7762

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