Skip to content
Permalink
Browse files

Update legend test masks, fix for PyQt5

  • Loading branch information
nyalldawson committed Jul 13, 2016
1 parent c226e57 commit 7f2bdcf34254d887885fcb61e97408d1d4407fca
@@ -75,7 +75,7 @@ def testInitialSizeSymbolMapUnits(self):
result, message = checker.testComposition()
self.assertTrue(result, message)

QgsMapLayerRegistry.instance().removeMapLayers([point_layer])
QgsMapLayerRegistry.instance().removeMapLayers([point_layer.id()])

def testResizeWithMapContent(self):
"""Test test legend resizes to match map content"""
@@ -113,7 +113,7 @@ def testResizeWithMapContent(self):
result, message = checker.testComposition()
self.assertTrue(result, message)

QgsMapLayerRegistry.instance().removeMapLayers([point_layer])
QgsMapLayerRegistry.instance().removeMapLayers([point_layer.id()])

def testResizeDisabled(self):
"""Test that test legend does not resize if auto size is disabled"""
@@ -155,7 +155,7 @@ def testResizeDisabled(self):
result, message = checker.testComposition()
self.assertTrue(result, message)

QgsMapLayerRegistry.instance().removeMapLayers([point_layer])
QgsMapLayerRegistry.instance().removeMapLayers([point_layer.id()])

def testResizeDisabledCrop(self):
"""Test that if legend resizing is disabled, and legend is too small, then content is cropped"""
@@ -197,7 +197,7 @@ def testResizeDisabledCrop(self):
result, message = checker.testComposition()
self.assertTrue(result, message)

QgsMapLayerRegistry.instance().removeMapLayers([point_layer])
QgsMapLayerRegistry.instance().removeMapLayers([point_layer.id()])

if __name__ == '__main__':
unittest.main()
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7f2bdcf

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