Skip to content

Commit df8940c

Browse files
committedJan 5, 2019
Add control image for atlas GetPrint test and fix some python stuff
1 parent 23669b6 commit df8940c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
 

‎tests/src/python/test_qgsserver_wms_getprint.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,8 @@ def test_wms_getprint_atlas( self ):
423423
"CRS": "EPSG:3857",
424424
"ATLAS_PK": "3",
425425
}.items())])
426-
427-
r, h = self._result(self._execute_request(qs))
428-
self._img_diff_error(r, h, "WMS_GetPrint_Atlas")
426+
r, h = self._result(self._execute_request(qs))
427+
self._img_diff_error(r, h, "WMS_GetPrint_Atlas")
429428

430429
def test_wms_getprint_atlas_getProjectSettings( self ):
431430
qs = "?" + "&".join(["%s=%s" % i for i in list({
@@ -434,10 +433,9 @@ def test_wms_getprint_atlas_getProjectSettings( self ):
434433
"VERSION": "1.3.0",
435434
"REQUEST": "GetProjectSettings",
436435
}.items())])
437-
438-
r, h = self._result(self._execute_request(qs))
439-
self.assertTrue( 'atlasEnabled="1"' in r )
440-
self.assertTrue( '<PrimaryKeyAttribute>' in r )
436+
r, h = self._result(self._execute_request(qs))
437+
self.assertTrue( 'atlasEnabled="1"' in str( r ) )
438+
self.assertTrue( '<PrimaryKeyAttribute>' in str( r ) )
441439

442440
if __name__ == '__main__':
443441
unittest.main()
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.