mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Indentation
This commit is contained in:
parent
38062ec649
commit
6c57654d2c
@ -417,7 +417,7 @@ class TestPyQgsMemoryProvider(unittest.TestCase, ProviderTestCase):
|
||||
|
||||
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 @@ class TestLayoutBase(TestQgsPalLabeling):
|
||||
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 @@ class TestLayoutBase(TestQgsPalLabeling):
|
||||
QPainter.Antialiasing,
|
||||
self._TestMapSettings.testFlag(QgsMapSettings.Antialiasing)
|
||||
)
|
||||
exporter=QgsLayoutExporter(self._c)
|
||||
exporter = QgsLayoutExporter(self._c)
|
||||
exporter.renderPage(p, 0)
|
||||
p.end()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user