Skip to content
Permalink
Browse files

Update tests

  • Loading branch information
pblottiere committed Mar 29, 2019
1 parent 7e39226 commit fd4ac20ea88a70889ac239c039a41acfbc9aa6b4
@@ -629,7 +629,7 @@ def test_wms_getmap_invalid_size(self):
"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)
@@ -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()

0 comments on commit fd4ac20

Please sign in to comment.
You can’t perform that action at this time.