Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unittest for composer polyline with arrow
  • Loading branch information
mhugent committed Feb 9, 2019
1 parent c752d24 commit aa7e624
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/src/python/test_qgslayoutpolyline.py
Expand Up @@ -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"""

Expand Down
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 aa7e624

Please sign in to comment.