Skip to content
Permalink
Browse files
Update test
  • Loading branch information
nyalldawson committed Nov 25, 2021
1 parent 937dd80 commit 6000d75a6e4b7856b5ecb57a0ffdb1a9f4767897
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_qgsgrouplayer.py
@@ -123,10 +123,10 @@ def test_extent(self):

group_layer.setChildLayers([layer1])
extent = group_layer.extent()
self.assertEqual(extent.xMinimum(), 2478778)
self.assertEqual(extent.xMaximum(), 2478778)
self.assertEqual(extent.yMinimum(), 2487236)
self.assertEqual(extent.yMaximum(), 2487236)
self.assertAlmostEqual(extent.xMinimum(), 2478778, -2)
self.assertAlmostEqual(extent.xMaximum(), 2478778, -2)
self.assertAlmostEqual(extent.yMinimum(), 2487236, -2)
self.assertAlmostEqual(extent.yMaximum(), 2487236, -2)

layer2 = QgsVectorLayer('Point?crs=epsg:4326', 'Point', 'memory')
f.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(142.178, -35.943)))

0 comments on commit 6000d75

Please sign in to comment.