diff --git a/tests/src/python/test_qgscategorizedsymbolrenderer.py b/tests/src/python/test_qgscategorizedsymbolrenderer.py index 57bbef300693..851b144ab5e9 100644 --- a/tests/src/python/test_qgscategorizedsymbolrenderer.py +++ b/tests/src/python/test_qgscategorizedsymbolrenderer.py @@ -939,8 +939,8 @@ def test_to_sld(self): # this category should NOT be included in the SLD, as it would otherwise result # in an invalid se:rule with no symbolizer element symbol_which_is_empty_in_sld = createFillSymbol() - symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.NoBrush) - symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.NoPen) + symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.BrushStyle.NoBrush) + symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.PenStyle.NoPen) renderer.addCategory(QgsRendererCategory(None, symbol_which_is_empty_in_sld, 'empty', True, '4')) dom = QDomDocument() diff --git a/tests/src/python/test_qgsgraduatedsymbolrenderer.py b/tests/src/python/test_qgsgraduatedsymbolrenderer.py index b5bf96028ded..282dc5e526e3 100644 --- a/tests/src/python/test_qgsgraduatedsymbolrenderer.py +++ b/tests/src/python/test_qgsgraduatedsymbolrenderer.py @@ -586,8 +586,8 @@ def test_to_sld(self): # this category should NOT be included in the SLD, as it would otherwise result # in an invalid se:rule with no symbolizer element symbol_which_is_empty_in_sld = createFillSymbol() - symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.NoBrush) - symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.NoPen) + symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.BrushStyle.NoBrush) + symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.PenStyle.NoPen) renderer.addClassRange( QgsRendererRange(25.5, 26.5, symbol_which_is_empty_in_sld, 'd', False, '2')) diff --git a/tests/src/python/test_qgsrulebasedrenderer.py b/tests/src/python/test_qgsrulebasedrenderer.py index 2b91ee352a5f..d1ad7a7fa27b 100644 --- a/tests/src/python/test_qgsrulebasedrenderer.py +++ b/tests/src/python/test_qgsrulebasedrenderer.py @@ -55,8 +55,8 @@ def test_to_sld(self): # this rule should NOT be included in the SLD, as it would otherwise result # in an invalid se:rule with no symbolizer element symbol_which_is_empty_in_sld = createFillSymbol() - symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.NoBrush) - symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.NoPen) + symbol_which_is_empty_in_sld[0].setBrushStyle(Qt.BrushStyle.NoBrush) + symbol_which_is_empty_in_sld[0].setStrokeStyle(Qt.PenStyle.NoPen) root_rule.appendChild( QgsRuleBasedRenderer.Rule(symbol_which_is_empty_in_sld, filterExp='"something"=3', label="label c", description="rule c"))