diff --git a/tests/src/python/test_provider_wfs.py b/tests/src/python/test_provider_wfs.py index 18b8bb6389a2..bc385e4f3880 100644 --- a/tests/src/python/test_provider_wfs.py +++ b/tests/src/python/test_provider_wfs.py @@ -6417,28 +6417,26 @@ def testFilteredFeatureRequests(self): self.assertEqual(other_feat["name"], "Xxx") qgis_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("\"verified\" is true"))) + vl.getFeatures(QgsFeatureRequest(QgsExpression('"verified" is true'))) ) other_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("\"verified\" is false"))) + vl.getFeatures(QgsFeatureRequest(QgsExpression('"verified" is false'))) ) self.assertEqual(qgis_feat["name"], "Xxx") self.assertEqual(other_feat["name"], "qgis") - qgis_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("\"verified\""))) - ) + qgis_feat = next(vl.getFeatures(QgsFeatureRequest(QgsExpression('"verified"')))) other_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("not \"verified\""))) + vl.getFeatures(QgsFeatureRequest(QgsExpression('not "verified"'))) ) self.assertEqual(qgis_feat["name"], "Xxx") self.assertEqual(other_feat["name"], "qgis") qgis_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("\"verified\" = true"))) + vl.getFeatures(QgsFeatureRequest(QgsExpression('"verified" = true'))) ) other_feat = next( - vl.getFeatures(QgsFeatureRequest(QgsExpression("\"verified\" = false"))) + vl.getFeatures(QgsFeatureRequest(QgsExpression('"verified" = false'))) ) self.assertEqual(qgis_feat["name"], "Xxx") self.assertEqual(other_feat["name"], "qgis")