Skip to content

Commit d61f665

Browse files
committed
move tests
1 parent 02c01a3 commit d61f665

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

tests/api/test_api.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -548,20 +548,6 @@ async def test_get_collections_search(
548548
assert resp.json()["collections"][1]["id"] == load_test_collection["id"]
549549
assert resp.json()["collections"][0]["id"] == load_test2_collection.id
550550

551-
# free-text
552-
resp = await app_client.get(
553-
"/collections",
554-
params={"q": "temperature"},
555-
)
556-
assert len(resp.json()["collections"]) == 1
557-
assert resp.json()["collections"][0]["id"] == load_test2_collection.id
558-
559-
resp = await app_client.get(
560-
"/collections",
561-
params={"q": "nosuchthing"},
562-
)
563-
assert len(resp.json()["collections"]) == 0
564-
565551

566552
@pytest.mark.asyncio
567553
async def test_item_collection_filter_bbox(

tests/resources/test_collection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ async def test_collection_search_freetext(
320320
assert len(resp.json()["collections"]) == 1
321321
assert resp.json()["collections"][0]["id"] == load_test2_collection.id
322322

323+
resp = await app_client.get(
324+
"/collections",
325+
params={"q": "nosuchthing"},
326+
)
327+
assert len(resp.json()["collections"]) == 0
328+
323329

324330
@requires_pgstac_0_9_2
325331
@pytest.mark.asyncio

0 commit comments

Comments
 (0)