diff --git a/tests/src/python/test_qgsprofilesourceregistry.py b/tests/src/python/test_qgsprofilesourceregistry.py index 7b2496d754d0..e0efc6d2ba02 100644 --- a/tests/src/python/test_qgsprofilesourceregistry.py +++ b/tests/src/python/test_qgsprofilesourceregistry.py @@ -108,8 +108,8 @@ def renderResults(self, context): if not painter: return - painter.setBrush(Qt.NoBrush) - painter.setPen(Qt.NoPen) + painter.setBrush(Qt.BrushStyle.NoBrush) + painter.setPen(Qt.PenStyle.NoPen) minDistance = context.distanceRange().lower() maxDistance = context.distanceRange().upper() diff --git a/tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png b/tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png new file mode 100644 index 000000000000..4490b53f6573 Binary files /dev/null and b/tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png differ