Skip to content
Permalink
Browse files

Add unit test for excluded attributes

  • Loading branch information
pblottiere committed Jan 18, 2019
1 parent 332f78b commit 101cd73125bba54ee5beaacec11e682e7ec90ff5
@@ -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',

0 comments on commit 101cd73

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