Skip to content

Commit

Permalink
Fix split policy test
Browse files Browse the repository at this point in the history
- This change was made to match the change in b2d4fc8
  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
  • Loading branch information
JuhoErvasti committed Dec 16, 2024
1 parent b2d4fc8 commit c9981ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsvectorlayereditutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
],
)

Expand Down

0 comments on commit c9981ad

Please sign in to comment.