Update tests

This commit is contained in:
Blottiere Paul 2019-03-29 14:15:42 +01:00
parent 7e39226879
commit fd4ac20ea8
2 changed files with 3 additions and 3 deletions

View File

@ -629,7 +629,7 @@ class TestQgsServerWMSGetMap(QgsServerTestBase):
"WIDTH": "5000"
}.items())])
expected = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="Size error">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
expected = 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')
r, h = self._result(self._execute_request(qs))
self.assertEqual(self.strip_version_xmlns(r), expected)

View File

@ -50,9 +50,9 @@ void TestQgsServerWmsExceptions::exception_code()
QgsWms::QgsServiceException exception0( code, QString(), 400 );
QCOMPARE( exception0.code(), QString( "InvalidFormat" ) );
code = QgsWms::QgsServiceException::QGIS_ERROR;
code = QgsWms::QgsServiceException::QGIS_INVALID_PARAMETER_VALUE;
QgsWms::QgsServiceException exception1( code, QString(), 400 );
QCOMPARE( exception1.code(), QString( "Error" ) );
QCOMPARE( exception1.code(), QString( "InvalidParameterValue" ) );
}
void TestQgsServerWmsExceptions::exception_message()