Skip to content
Permalink
Browse files

Add a bit of tolerance to WFS provider test

Was failing on Fedora 27
  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 705416c commit d6eb8eccdd330aeee0d8a47eedc2f4a86a3e3d88
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_provider_wfs.py
@@ -2179,7 +2179,7 @@ def testGeomedia(self):
# Extent before downloading features
reference = QgsGeometry.fromRect(QgsRectangle(243900.3520259926444851, 4427769.1559739429503679, 1525592.3040170343592763, 5607994.6020106188952923))
vl_extent = QgsGeometry.fromRect(vl.extent())
assert QgsGeometry.compare(vl_extent.asPolygon()[0], reference.asPolygon()[0], 0.00001), 'Expected {}, got {}'.format(reference.asWkt(), vl_extent.asWkt())
assert QgsGeometry.compare(vl_extent.asPolygon()[0], reference.asPolygon()[0], 0.05), 'Expected {}, got {}'.format(reference.asWkt(), vl_extent.asWkt())

# Download all features
features = [f for f in vl.getFeatures()]

0 comments on commit d6eb8ec

Please sign in to comment.
You can’t perform that action at this time.