From c9981ad10257c803e25bee1918749b4e0a2ff95a Mon Sep 17 00:00:00 2001 From: JuhoErvasti Date: Mon, 16 Dec 2024 19:51:06 +0200 Subject: [PATCH] Fix split policy test - This change was made to match the change in b2d4fc8803280a090914026f74b29b150e8f28b5 where the largest geometry is now inherited by the original feature when splitting features. - This caused the test to fail for the 'field_unset' and 'field_ratio' attributes since the largest feature with the largest 'field_ratio' attribute also had the original 'field_unset' value and the others had an unset attribute --- tests/src/python/test_qgsvectorlayereditutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/python/test_qgsvectorlayereditutils.py b/tests/src/python/test_qgsvectorlayereditutils.py index 36b691b48f8c..10ffc2b6a04e 100644 --- a/tests/src/python/test_qgsvectorlayereditutils.py +++ b/tests/src/python/test_qgsvectorlayereditutils.py @@ -752,9 +752,9 @@ def test_split_policy_lines(self): self.assertCountEqual( attributes, [ - [None, 3301.0, 302.0, 303.0, 8.664000000000001, 305.0], + [None, 3301.0, 302.0, 303.0, 277.53878260869567, 305.0], + [None, 301, 302.0, QgsUnsetAttributeValue(), 8.664000000000001, 305.0], [None, 301, 302.0, QgsUnsetAttributeValue(), 17.797217391304347, 305.0], - [None, 301, 302.0, QgsUnsetAttributeValue(), 277.53878260869567, 305.0], ], )