Skip to content

Commit 82a2af4

Browse files
committed
monkeypatch
1 parent dfec3d3 commit 82a2af4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stac_fastapi/tests/api/test_api_search_collections.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,17 @@ async def test_collections_fields_all_endpoints(app_client, txn_client, ctx):
185185

186186

187187
@pytest.mark.asyncio
188-
async def test_collections_free_text_all_endpoints(app_client, txn_client, ctx):
188+
async def test_collections_free_text_all_endpoints(
189+
app_client, txn_client, ctx, monkeypatch
190+
):
189191
"""Test free text search across all collection endpoints."""
190192
# Create test data
191193
test_prefix = f"free-text-{uuid.uuid4().hex[:8]}"
192194
base_collection = ctx.collection
193195
search_term = "SEARCHABLETERM"
194196

197+
monkeypatch.setenv("ENABLE_COLLECTIONS_SEARCH_ROUTE", "true")
198+
195199
# Create test collections
196200
target_collection = base_collection.copy()
197201
target_collection["id"] = f"{test_prefix}-target"

0 commit comments

Comments
 (0)