Update tests

This commit is contained in:
Blottiere Paul 2019-04-19 20:55:15 +02:00
parent 1c37099ba4
commit dabd3dc935
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class TestQgsServerWMSGetMapSizeProject(QgsServerTestBase):
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '6000'
super(TestQgsServerWMSGetMapSizeProject, self).setUp()
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map height is too large</ServiceException>\n</ServiceExceptionReport>\n')
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
def test_wms_getmap_invalid_size_project(self):
# test the 6000 limit from server is overridden by the more conservative 5000 in the project

View File

@ -41,7 +41,7 @@ class TestQgsServerWMSGetMapSizeServer(QgsServerTestBase):
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '3000'
super(TestQgsServerWMSGetMapSizeServer, self).setUp()
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map height is too large</ServiceException>\n</ServiceExceptionReport>\n')
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
def test_wms_getmap_invalid_size_server(self):
# test the 3000 limit from server is overriding the less conservative 5000 in the project