Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and github-actions[bot] committed Jan 7, 2025
1 parent 6d387fa commit 4eb2b47
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/src/python/test_provider_wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4eb2b47

Please sign in to comment.