Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unit test for getfeatureinfo with alias in json
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 3f38365 commit 62f7762
Show file tree
Hide file tree
Showing 3 changed files with 584 additions and 231 deletions.
10 changes: 10 additions & 0 deletions tests/src/python/test_qgsserver_wms_getfeatureinfo.py
Expand Up @@ -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&' +
Expand All @@ -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',
Expand Down

0 comments on commit 62f7762

Please sign in to comment.