Skip to content

Commit 7b3f48d

Browse files
committed
fix: conditionally include 'collection' field in item fields extension test
1 parent 4452922 commit 7b3f48d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/api/test_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ async def test_app_item_fields_extension(
310310
assert len(features) > 0
311311
# These fields are always included in items
312312
constant_fields = ["id", "links"]
313+
if not app.state.settings.use_api_hydrate:
314+
constant_fields.append("collection")
313315
for item in features:
314316
assert set(item.keys()) == set(fields + constant_fields)
315317

0 commit comments

Comments
 (0)