Skip to content
Permalink
Browse files

Indentation

  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 38062ec commit 6c57654d2c098b4dd85b6f137d85498842e02c38
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/src/python/test_provider_memory.py
  2. +2 −2 tests/src/python/test_qgspallabeling_layout.py
@@ -417,7 +417,7 @@ def testCreateMemoryLayer(self):

def testThreadSafetyWithIndex(self):
layer = QgsVectorLayer('Point?crs=epsg:4326&index=yes&field=pk:integer&field=cnt:int8&field=name:string(0)&field=name2:string(0)&field=num_char:string&key=pk',
'test', 'memory')
'test', 'memory')

provider = layer.dataProvider()
f = QgsFeature()
@@ -120,7 +120,7 @@ def _set_up_composition(self, width, height, dpi, engine_settings):
paperw = width * 25.4 / dpi
paperh = height * 25.4 / dpi
page = QgsLayoutItemPage(self._c)
page.attemptResize(QgsLayoutSize(paperw,paperh))
page.attemptResize(QgsLayoutSize(paperw, paperh))
self._c.pageCollection().addPage(page)
# NOTE: do not use QgsLayoutItemMap(self._c, 0, 0, paperw, paperh) since
# it only takes integers as parameters and the composition will grow
@@ -153,7 +153,7 @@ def _get_layout_image(self, width, height, dpi):
QPainter.Antialiasing,
self._TestMapSettings.testFlag(QgsMapSettings.Antialiasing)
)
exporter=QgsLayoutExporter(self._c)
exporter = QgsLayoutExporter(self._c)
exporter.renderPage(p, 0)
p.end()

0 comments on commit 6c57654

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