Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_listing_count_on_demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_geojson_listing_excludes_numberMatched(self, client):
with patch.object(settings, "listing_count_on_demand", True):
# Request GeoJSON listing without hits
r = client.get(
"/catalogs/ex:DemoCatalog/collections/ex:GeoDataset/features/collections/ex:FeatureCollection/items?_mediatype=application/geo%2Bjson&_profile=ogcfeat-human"
"/catalogs/ex:DemoCatalog/collections/ex:GeoDataset/features/collections/ex:FeatureCollection/items?_mediatype=application/geo%2Bjson&_profile=ogcfeat-human&limit=1"
)
assert r.status_code == 200

Expand All @@ -152,6 +152,7 @@ def test_geojson_listing_excludes_numberMatched(self, client):
# Should have numberReturned (count of items in this response)
assert "numberReturned" in geojson
assert geojson["numberReturned"] >= 0
assert "numberMatched" not in geojson

# Should NOT have numberMatched (total count)
# Note: numberMatched might be inferred if it's the first page and
Expand Down
Loading