From 4c70a7f0d28026aadac8a87c6fc0db2a4624d579 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:46:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/src/python/test_provider_wfs.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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")