Skip to content

Commit

Permalink
Python formating
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 5, 2021
1 parent d0d7f07 commit 68b4dad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/python/test_qgsserver_wms.py
Expand Up @@ -105,10 +105,10 @@ def test_getcapabilities_advertised_url(self):
server = QgsServer()
request = QgsServerRequest()
projectPath = os.path.join(self.testdata_path, 'test_project.qgs')
request.setUrl( QUrl('http://localhost/qgis_mapserv.fcgi?MAP=' + projectPath + '&SERVICE=WMS&REQUEST=GetCapabilities') )
request.setOriginalUrl( QUrl('http://localhost/wms/test_project') )
request.setUrl(QUrl('http://localhost/qgis_mapserv.fcgi?MAP=' + projectPath + '&SERVICE=WMS&REQUEST=GetCapabilities'))
request.setOriginalUrl(QUrl('http://localhost/wms/test_project'))
response = QgsBufferServerResponse()
server.handleRequest( request, response )
server.handleRequest(request, response)
response.flush()

headers = []
Expand All @@ -120,7 +120,7 @@ def test_getcapabilities_advertised_url(self):
reference_path = os.path.join(self.testdata_path, 'wms_getcapabilities_rewriting.txt')
f = open(reference_path, 'rb')
expected = f.read()
self.assertXMLEqual(b"\n".join(headers) + b"\n\n" + bytes(response.body()), expected )
self.assertXMLEqual(b"\n".join(headers) + b"\n\n" + bytes(response.body()), expected)

def test_getprojectsettings(self):
self.wms_request_compare('GetProjectSettings')
Expand Down

0 comments on commit 68b4dad

Please sign in to comment.