Skip to content

Commit b88f9b5

Browse files
committed
Port pal composer test to labels
1 parent d372799 commit b88f9b5

File tree

5 files changed

+89
-79
lines changed

5 files changed

+89
-79
lines changed

tests/src/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ADD_PYTHON_TEST(PyQgsOptional test_qgsoptional.py)
119119
ADD_PYTHON_TEST(PyQgsOwsConnection test_qgsowsconnection.py)
120120
ADD_PYTHON_TEST(PyQgsPalLabelingBase test_qgspallabeling_base.py)
121121
ADD_PYTHON_TEST(PyQgsPalLabelingCanvas test_qgspallabeling_canvas.py)
122-
ADD_PYTHON_TEST(PyQgsPalLabelingComposer test_qgspallabeling_composer.py)
122+
ADD_PYTHON_TEST(PyQgsPalLabelingLayout test_qgspallabeling_layout.py)
123123
ADD_PYTHON_TEST(PyQgsPalLabelingPlacement test_qgspallabeling_placement.py)
124124
ADD_PYTHON_TEST(PyQgsPanelWidget test_qgspanelwidget.py)
125125
ADD_PYTHON_TEST(PyQgsPanelWidgetStack test_qgspanelwidgetstack.py)

tests/src/python/test_qgslayoutatlas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def testCase(self):
8585
QgsProject.instance().addMapLayers([mVectorLayer])
8686
self.layers = [mVectorLayer]
8787

88-
# create composition with composer map
88+
# create layout with layout map
8989

9090
# select epsg:2154
9191
crs = QgsCoordinateReferenceSystem()
@@ -576,7 +576,7 @@ def rotation_test(self):
576576
polygonLayer.dataProvider().addFeatures([poly])
577577
QgsProject.instance().addMapLayer(polygonLayer)
578578

579-
# Recreating the composer locally
579+
# Recreating the layout locally
580580
composition = QgsPrintLayout(QgsProject.instance())
581581
composition.initializeDefaults()
582582

tests/src/python/test_qgslayoutmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, methodName):
7575
# assert pipe.set(rasterRenderer), 'Cannot set pipe renderer'
7676
QgsProject.instance().addMapLayers([self.raster_layer, self.vector_layer])
7777

78-
# create composition with composer map
78+
# create layout with layout map
7979
self.layout = QgsLayout(QgsProject.instance())
8080
self.layout.initializeDefaults()
8181
self.map = QgsLayoutItemMap(self.layout)
@@ -166,7 +166,7 @@ def testOverviewMapCenter(self):
166166
assert myTestResult, myMessage
167167

168168
def testMapCrs(self):
169-
# create composition with composer map
169+
# create layout with layout map
170170
map_settings = QgsMapSettings()
171171
map_settings.setLayers([self.vector_layer])
172172
layout = QgsLayout(QgsProject.instance())

0 commit comments

Comments
 (0)