Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unit test for excluded attributes
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 332f78b commit 101cd73
Show file tree
Hide file tree
Showing 3 changed files with 776 additions and 464 deletions.
13 changes: 11 additions & 2 deletions tests/src/python/test_qgsserver_wms_getfeatureinfo.py
Expand Up @@ -435,13 +435,22 @@ def testGetFeatureInfoJSON(self):

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

# test with excluded attributes
self.wms_request_compare('GetFeatureInfo',
'&layers=exclude_attribute&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=exclude_attribute&X=190&Y=320',
'wms_getfeatureinfo_exclude_attribute_json')

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

0 comments on commit 101cd73

Please sign in to comment.