Skip to content

Commit

Permalink
Add control image for atlas GetPrint test and fix some python stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jan 5, 2019
1 parent 23669b6 commit df8940c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/src/python/test_qgsserver_wms_getprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,8 @@ def test_wms_getprint_atlas( self ):
"CRS": "EPSG:3857",
"ATLAS_PK": "3",
}.items())])

r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetPrint_Atlas")
r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetPrint_Atlas")

def test_wms_getprint_atlas_getProjectSettings( self ):
qs = "?" + "&".join(["%s=%s" % i for i in list({
Expand All @@ -434,10 +433,9 @@ def test_wms_getprint_atlas_getProjectSettings( self ):
"VERSION": "1.3.0",
"REQUEST": "GetProjectSettings",
}.items())])

r, h = self._result(self._execute_request(qs))
self.assertTrue( 'atlasEnabled="1"' in r )
self.assertTrue( '<PrimaryKeyAttribute>' in r )
r, h = self._result(self._execute_request(qs))
self.assertTrue( 'atlasEnabled="1"' in str( r ) )
self.assertTrue( '<PrimaryKeyAttribute>' in str( r ) )

if __name__ == '__main__':
unittest.main()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df8940c

Please sign in to comment.