Skip to content

Commit c71347c

Browse files
committed
Indentation
1 parent d3aae3f commit c71347c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/src/python/test_qgssvgcache.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,29 @@ def tearDown(self):
5555
def testRemoteSVG(self):
5656
"""Test fetching remote svg."""
5757
url = 'http://localhost:{}/qgis_local_server/sample_svg.svg'.format(str(TestQgsSvgCache.port))
58-
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0), strokeWidth=0.1, widthScaleFactor=1)
58+
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0),
59+
strokeWidth=0.1, widthScaleFactor=1)
5960
self.assertTrue(self.imageCheck('Remote SVG', 'remote_svg', image))
6061

6162
def testRemoteSvgAsText(self):
6263
"""Test fetching remote svg with text mime format - e.g. github raw svgs"""
6364
url = 'http://localhost:{}/qgis_local_server/svg_as_text.txt'.format(str(TestQgsSvgCache.port))
64-
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0), strokeWidth=0.1, widthScaleFactor=1)
65+
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0),
66+
strokeWidth=0.1, widthScaleFactor=1)
6567
self.assertTrue(self.imageCheck('Remote SVG as Text', 'remote_svg', image))
6668

6769
def testRemoteSvgBadMime(self):
6870
"""Test fetching remote svg with bad mime type"""
6971
url = 'http://localhost:{}/qgis_local_server/logo.png'.format(str(TestQgsSvgCache.port))
70-
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0), strokeWidth=0.1, widthScaleFactor=1)
72+
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0),
73+
strokeWidth=0.1, widthScaleFactor=1)
7174
self.assertTrue(self.imageCheck('Remote SVG bad MIME type', 'bad_svg', image))
7275

7376
def testRemoteSvgMissing(self):
7477
"""Test fetching remote svg with bad url"""
7578
url = 'http://localhost:{}/qgis_local_server/xxx.svg'.format(str(TestQgsSvgCache.port)) # oooo naughty
76-
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0), strokeWidth=0.1, widthScaleFactor=1)
79+
image, in_cache = QgsApplication.svgCache().svgAsImage(url, 100, fill=QColor(0, 0, 0), stroke=QColor(0, 0, 0),
80+
strokeWidth=0.1, widthScaleFactor=1)
7781
self.assertTrue(self.imageCheck('Remote SVG missing', 'bad_svg', image))
7882

7983
def imageCheck(self, name, reference_image, image):
@@ -91,5 +95,6 @@ def imageCheck(self, name, reference_image, image):
9195
print((self.report))
9296
return result
9397

98+
9499
if __name__ == '__main__':
95100
unittest.main()

0 commit comments

Comments
 (0)