Skip to content
Permalink
Browse files
Format python code
  • Loading branch information
mhugent committed Jun 22, 2021
1 parent 79ccc06 commit 220d5ec7266fd954341d1b99a333ae263cf3ec13
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/src/python/test_qgsannotation.py
@@ -142,9 +142,9 @@ def testHtmlAnnotationSetHtmlSource(self):
a.markerSymbol().symbolLayer(0).setStrokeColor(QColor(0, 0, 0))
a.setFrameSizeMm(QSizeF(400 / 3.7795275, 250 / 3.7795275))
a.setFrameOffsetFromReferencePointMm(QPointF(70 / 3.7795275, 90 / 3.7795275))
htmlFile = open( TEST_DATA_DIR + "/test_html.html" )
htmlFile = open(TEST_DATA_DIR + "/test_html.html")
htmlText = htmlFile.read()
a.setHtmlSource( htmlText )
a.setHtmlSource(htmlText)
im = self.renderAnnotation(a, QPointF(20, 30))
self.assertTrue(self.imageCheck('html_annotation_html_source', 'html_annotation', im))

@@ -159,7 +159,6 @@ def testHtmlAnnotationInLayout(self):
a.setSourceFile(html)
self.assertTrue(self.renderAnnotationInLayout('html_annotation_in_layout', a))


def testHtmlAnnotationWithFeature(self):
""" test rendering a html annotation with a feature"""
layer = QgsVectorLayer("Point?crs=EPSG:3111&field=station:string&field=suburb:string",

0 comments on commit 220d5ec

Please sign in to comment.