Skip to content
Permalink
Browse files

Add unittest for composer polyline with arrow

  • Loading branch information
mhugent committed Feb 8, 2019
1 parent a321d40 commit 14e517665f292001caee428f87bd8788859e2104
@@ -146,6 +146,17 @@ def testSelectedNode(self):
myTestResult, myMessage = checker.testLayout()
assert myTestResult, myMessage

def testEndArrow(self):
self.polyline.setEndMarker(QgsLayoutItemPolyline.ArrowHead)
self.polyline.setArrowHeadWidth(30.0)

checker = QgsLayoutChecker('composerpolyline_endArrow', self.layout)
checker.setControlPathPrefix("composer_polyline")
myTestResult, myMessage = checker.testLayout()
assert myTestResult, myMessage

self.polyline.setEndMarker(QgsLayoutItemPolyline.NoMarker)

def testRemoveNode(self):
"""Test removeNode method"""

Binary file not shown.

0 comments on commit 14e5176

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