Untitled
unknown
python
2 years ago
319 B
10
Indexable
def test_filter_fid(self) -> None:
db_path = Path(__file__).parent.joinpath("data/base_test.db")
provider = DuckdbProvider(uri=f"path={db_path} table=cities epsg=4326")
req = QgsFeatureRequest()
req.setFilterFids([1])
self.assertEqual(len(list(provider.getFeatures(req))), 1)Editor is loading...