@@ -88,6 +88,16 @@ def test_project_wms(self):
88
88
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320' ,
89
89
'wms_getfeatureinfo-text-html' )
90
90
91
+ # Test getfeatureinfo response text
92
+ self .wms_request_compare ('GetFeatureInfo' ,
93
+ '&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
94
+ 'transparent=true&' +
95
+ 'width=600&height=400&srs=EPSG%3A3857&bbox=913190.6389747962%2C' +
96
+ '5606005.488876367%2C913235.426296057%2C5606035.347090538&' +
97
+ 'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320&' +
98
+ 'info_format=text/plain' ,
99
+ 'wms_getfeatureinfo-text-plain' )
100
+
91
101
# Test getfeatureinfo default info_format
92
102
self .wms_request_compare ('GetFeatureInfo' ,
93
103
'&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
@@ -97,6 +107,16 @@ def test_project_wms(self):
97
107
'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320' ,
98
108
'wms_getfeatureinfo-text-plain' )
99
109
110
+ # Test getfeatureinfo invalid info_format
111
+ self .wms_request_compare ('GetFeatureInfo' ,
112
+ '&layers=testlayer%20%C3%A8%C3%A9&styles=&' +
113
+ 'transparent=true&' +
114
+ 'width=600&height=400&srs=EPSG%3A3857&bbox=913190.6389747962%2C' +
115
+ '5606005.488876367%2C913235.426296057%2C5606035.347090538&' +
116
+ 'query_layers=testlayer%20%C3%A8%C3%A9&X=190&Y=320&' +
117
+ 'info_format=InvalidFormat' ,
118
+ 'wms_getfeatureinfo-invalid-format' )
119
+
100
120
# Regression for #8656
101
121
# Mind the gap! (the space in the FILTER expression)
102
122
self .wms_request_compare ('GetFeatureInfo' ,
0 commit comments