Skip to content
Permalink
Browse files

Add control image for atlas GetPrint test and fix some python stuff

  • Loading branch information
mhugent committed Jan 2, 2019
1 parent 23669b6 commit df8940c6bf774a31b3fd31c18b160f9dac50902b
@@ -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({
@@ -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()
Binary file not shown.

0 comments on commit df8940c

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