@@ -163,7 +163,7 @@ def setUp(self):
163
163
if k in environ :
164
164
del environ [k ]
165
165
166
- self .projectPath = urllib .quote ( path .join (self .testdata_path , "project.qgs" ) )
166
+ self .projectPath = urllib .quote (path .join (self .testdata_path , "project.qgs" ))
167
167
168
168
def tearDown (self ):
169
169
copyfile (path .join (self .testdata_path , "_helloworld.db" ), path .join (self .testdata_path , "helloworld.db" ))
@@ -871,7 +871,8 @@ def test_wms_getfeatureinfo_subsetstring(self):
871
871
"FEATURE_COUNT" : "10" ,
872
872
"INFO_FORMAT" : "application/vnd.ogc.gml" ,
873
873
"X" : "56" ,
874
- "Y" : "144"
874
+ "Y" : "144" ,
875
+ "MAP" : self .projectPath
875
876
}.items ()])
876
877
877
878
response , headers = self ._get_fullaccess (query_string )
@@ -906,7 +907,8 @@ def test_wms_getfeatureinfo_subsetstring2(self):
906
907
"FEATURE_COUNT" : "10" ,
907
908
"INFO_FORMAT" : "application/vnd.ogc.gml" ,
908
909
"X" : "146" ,
909
- "Y" : "160"
910
+ "Y" : "160" ,
911
+ "MAP" : self .projectPath
910
912
}.items ()])
911
913
912
914
response , headers = self ._get_fullaccess (query_string )
@@ -1002,17 +1004,21 @@ def _get_restricted(self, query_string):
1002
1004
def _post_fullaccess (self , data , query_string = None ):
1003
1005
environ ["REQUEST_METHOD" ] = "POST"
1004
1006
environ ["REQUEST_BODY" ] = data
1007
+ environ ["QGIS_PROJECT_FILE" ] = self .projectPath
1005
1008
result = self ._handle_request (False , query_string )
1006
1009
del environ ["REQUEST_METHOD" ]
1007
1010
del environ ["REQUEST_BODY" ]
1011
+ del environ ["QGIS_PROJECT_FILE" ]
1008
1012
return result
1009
1013
1010
1014
def _post_restricted (self , data , query_string = None ):
1011
1015
environ ["REQUEST_METHOD" ] = "POST"
1012
1016
environ ["REQUEST_BODY" ] = data
1017
+ environ ["QGIS_PROJECT_FILE" ] = self .projectPath
1013
1018
result = self ._handle_request (True , query_string )
1014
1019
del environ ["REQUEST_METHOD" ]
1015
1020
del environ ["REQUEST_BODY" ]
1021
+ del environ ["QGIS_PROJECT_FILE" ]
1016
1022
return result
1017
1023
1018
1024
def _img_diff (self , image , control_image , max_diff , max_size_diff = QSize ()):
0 commit comments