Skip to content
Permalink
Browse files

Add unit test

  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent f921f82 commit 562215c4cd2f12a175e5c1c7b4fd48dc8312ae55
@@ -423,6 +423,15 @@ def testGetFeatureInfoTolerance(self):
'wms_getfeatureinfo_polygon_tolerance_20_text_xml',
'test_project_values.qgz')

def testGetFeatureInfoJSON(self):
self.wms_request_compare('GetFeatureInfo',
'&layers=testlayer%20%C3%A8%C3%A9&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&X=190&Y=320',
'wms_getfeatureinfo_json')

def testGetFeatureInfoPostgresTypes(self):
# compare json list output with file
self.wms_request_compare('GetFeatureInfo',
@@ -0,0 +1,17 @@
*****
Content-Type: application/json; charset=utf-8

{ "type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"geometry":
{"type": "Point", "coordinates": [8.203459, 44.901395]},
"properties":{
"id":3,
"name":"three",
"utf8nameè":"three èé↓"
}
}
]}

0 comments on commit 562215c

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