Skip to content

Commit 260e9ad

Browse files
committed
Set system locale and thousand separator for test consistency
1 parent 22738bc commit 260e9ad

5 files changed

+9
-3
lines changed

tests/src/python/test_qgsserver.py

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def setUp(self):
130130
self.projectUseLayerIdsPath = os.path.join(d, "project_use_layerids.qgs")
131131
self.projectGroupsPath = os.path.join(d, "project_groups.qgs")
132132

133+
os.environ['QGIS_SERVER_SHOW_GROUP_SEPARATOR'] = '0'
134+
os.environ['QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE'] = 'en'
135+
133136
# Clean env just to be sure
134137
env_vars = ['QUERY_STRING', 'QGIS_PROJECT_FILE']
135138
for ev in env_vars:

tests/testdata/qgis_server/getprojectsettings.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
Response:
12
*****
3+
24
Content-Type: text/xml; charset=utf-8
35
<?xml version="1.0" encoding="utf-8"?>
46
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qgs="http://www.qgis.org/wms" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd https://www.qgis.org/?*****" version="1.3.0" xmlns:sld="http://www.opengis.net/sld">
@@ -292,3 +294,4 @@ Content-Type: text/xml; charset=utf-8
292294
<LayerDrawingOrder>testlayer3,testlayer2,testlayer èé,layer_with_short_name</LayerDrawingOrder>
293295
</Capability>
294296
</WMS_Capabilities>
297+

tests/testdata/qgis_server/wms_getfeatureinfo_group_name_areas.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ umrisstyp = 'durchgezogen'
2626
umrissstaerke = '1'
2727
umrissstaerke_prt = '3.00'
2828
umfang = '758.4703'
29-
flaeche = '12,879'
29+
flaeche = '12879'
3030
bemerkung = ''
3131
last_change = '2013-06-11 10:03:45.52301+02'
3232

tests/testdata/qgis_server/wms_getfeatureinfo_group_name_areas_cities.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ umrisstyp = 'durchgezogen'
2626
umrissstaerke = '1'
2727
umrissstaerke_prt = '3.00'
2828
umfang = '758.4703'
29-
flaeche = '12,879'
29+
flaeche = '12879'
3030
bemerkung = ''
3131
last_change = '2013-06-11 10:03:45.52301+02'
3232

tests/testdata/qgis_server/wms_getfeatureinfo_group_query_child.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ umrisstyp = 'durchgezogen'
2424
umrissstaerke = '1'
2525
umrissstaerke_prt = '3.00'
2626
umfang = '758.4703'
27-
flaeche = '12,879'
27+
flaeche = '12879'
2828
bemerkung = ''
2929
last_change = '2013-06-11 10:03:45.52301+02'
3030

0 commit comments

Comments
 (0)