Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 38062ec commit 6c57654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgspallabeling_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 6c57654

Please sign in to comment.