mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Merge pull request #7270 from tudorbarascu/enable_tests
enable test for getfeatureinfo value relation widget values
This commit is contained in:
commit
97726d6fbc
@ -178,13 +178,11 @@ class TestQgsServerWMSGetFeatureInfo(TestQgsServerWMSTestBase):
|
|||||||
'&CRS=EPSG:3857' +
|
'&CRS=EPSG:3857' +
|
||||||
'&FEATURE_COUNT=10' +
|
'&FEATURE_COUNT=10' +
|
||||||
'&QUERY_LAYERS=layer0&I=487&J=308',
|
'&QUERY_LAYERS=layer0&I=487&J=308',
|
||||||
'wms_getfeatureinfo-values1-text-xml',
|
'wms_getfeatureinfo-values0-text-xml',
|
||||||
'test_project_values.qgs')
|
'test_project_values.qgs')
|
||||||
|
|
||||||
# TODO fix regression in QGIS 3 as the widget values don't get solved and enable test
|
|
||||||
@unittest.expectedFailure
|
|
||||||
def testGetFeatureInfoValueRelation(self):
|
def testGetFeatureInfoValueRelation(self):
|
||||||
"""Test GetFeatureInfo resolves "value relation" widget values"""
|
"""Test GetFeatureInfo resolves "value relation" widget values. regression 18518"""
|
||||||
mypath = self.testdata_path + "test_project_values.qgs"
|
mypath = self.testdata_path + "test_project_values.qgs"
|
||||||
self.wms_request_compare('GetFeatureInfo',
|
self.wms_request_compare('GetFeatureInfo',
|
||||||
'&layers=layer1&styles=&' +
|
'&layers=layer1&styles=&' +
|
||||||
|
22
tests/testdata/qgis_server/wms_getfeatureinfo-values0-text-xml.txt
vendored
Normal file
22
tests/testdata/qgis_server/wms_getfeatureinfo-values0-text-xml.txt
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
*****
|
||||||
|
Content-Type: text/xml; charset=utf-8
|
||||||
|
|
||||||
|
<GetFeatureInfoResponse>
|
||||||
|
<Layer name="layer0">
|
||||||
|
<Feature id="0">
|
||||||
|
<Attribute value="1" name="id"/>
|
||||||
|
<Attribute value="one" name="name"/>
|
||||||
|
<Attribute value="First Value" name="utf8nameè"/>
|
||||||
|
</Feature>
|
||||||
|
<Feature id="1">
|
||||||
|
<Attribute value="2" name="id"/>
|
||||||
|
<Attribute value="two" name="name"/>
|
||||||
|
<Attribute value="Second Value" name="utf8nameè"/>
|
||||||
|
</Feature>
|
||||||
|
<Feature id="2">
|
||||||
|
<Attribute value="3" name="id"/>
|
||||||
|
<Attribute value="three" name="name"/>
|
||||||
|
<Attribute value="Third èé↓" name="utf8nameè"/>
|
||||||
|
</Feature>
|
||||||
|
</Layer>
|
||||||
|
</GetFeatureInfoResponse>
|
@ -2,21 +2,27 @@
|
|||||||
Content-Type: text/xml; charset=utf-8
|
Content-Type: text/xml; charset=utf-8
|
||||||
|
|
||||||
<GetFeatureInfoResponse>
|
<GetFeatureInfoResponse>
|
||||||
<Layer name="layer0">
|
<Layer name="layer1">
|
||||||
<Feature id="0">
|
<Feature id="0">
|
||||||
<Attribute value="1" name="id"/>
|
<Attribute value="Id no. 1 value" name="id"/>
|
||||||
<Attribute value="one" name="name"/>
|
<Attribute value="one_value" name="name"/>
|
||||||
<Attribute value="First Value" name="utf8nameè"/>
|
<Attribute value="one èé" name="utf8nameè"/>
|
||||||
|
<BoundingBox maxy="5606025.2373" maxx="913209.0358" miny="5606025.2373" CRS="EPSG:3857" minx="913209.0358"/>
|
||||||
|
<Attribute type="derived" value="Point (913209.0358 5606025.2373)" name="geometry"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
<Feature id="1">
|
<Feature id="1">
|
||||||
<Attribute value="2" name="id"/>
|
<Attribute value="Id no. 2 value" name="id"/>
|
||||||
<Attribute value="two" name="name"/>
|
<Attribute value="two_val" name="name"/>
|
||||||
<Attribute value="Second Value" name="utf8nameè"/>
|
<Attribute value="two àò" name="utf8nameè"/>
|
||||||
|
<BoundingBox maxy="5606017.8743" maxx="913214.6741" miny="5606017.8743" CRS="EPSG:3857" minx="913214.6741"/>
|
||||||
|
<Attribute type="derived" value="Point (913214.6741 5606017.8743)" name="geometry"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
<Feature id="2">
|
<Feature id="2">
|
||||||
<Attribute value="3" name="id"/>
|
<Attribute value="Id número 3 value" name="id"/>
|
||||||
<Attribute value="three" name="name"/>
|
<Attribute value="three_val" name="name"/>
|
||||||
<Attribute value="Third èé↓" name="utf8nameè"/>
|
<Attribute value="three èé↓" name="utf8nameè"/>
|
||||||
|
<BoundingBox maxy="5606011.4565" maxx="913204.9128" miny="5606011.4565" CRS="EPSG:3857" minx="913204.9128"/>
|
||||||
|
<Attribute type="derived" value="Point (913204.9128 5606011.4565)" name="geometry"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
</Layer>
|
</Layer>
|
||||||
</GetFeatureInfoResponse>
|
</GetFeatureInfoResponse>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user