Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Format python code
  • Loading branch information
mhugent committed Jun 22, 2021
1 parent 79ccc06 commit 220d5ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/src/python/test_qgsannotation.py
Expand Up @@ -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))

Expand All @@ -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",
Expand Down

0 comments on commit 220d5ec

Please sign in to comment.