Skip to content

Commit 4fbbd14

Browse files
committed
clean up tests
1 parent a70356b commit 4fbbd14

File tree

2 files changed

+0
-190
lines changed

2 files changed

+0
-190
lines changed

stac_fastapi/tests/api/test_api_search_collections.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,6 @@ async def test_collections_sort_id_asc(app_client, txn_client, ctx):
4444
for i, expected_id in enumerate(sorted_ids):
4545
assert test_collections[i]["id"] == expected_id
4646

47-
# Test descending sort by id
48-
resp = await app_client.get(
49-
"/collections",
50-
params=[("sortby", "-id")],
51-
)
52-
assert resp.status_code == 200
53-
resp_json = resp.json()
54-
55-
# Filter collections to only include the ones we created for this test
56-
test_collections = [
57-
c for c in resp_json["collections"] if c["id"].startswith(test_prefix)
58-
]
59-
60-
# Collections should be sorted in reverse alphabetical order by id
61-
sorted_ids = sorted(collection_ids, reverse=True)
62-
assert len(test_collections) == len(collection_ids)
63-
for i, expected_id in enumerate(sorted_ids):
64-
assert test_collections[i]["id"] == expected_id
65-
6647

6748
@pytest.mark.asyncio
6849
async def test_collections_sort_id_desc(app_client, txn_client, ctx):
@@ -382,12 +363,8 @@ async def test_collections_query_extension(app_client, txn_client, ctx):
382363

383364
await refresh_indices(txn_client)
384365

385-
# Test query extension for exact ID match
386-
import json
387-
388366
# Use the exact ID that was created
389367
sentinel_id = f"{test_prefix}-sentinel"
390-
print(f"Searching for ID: {sentinel_id}")
391368

392369
query = {"id": {"eq": sentinel_id}}
393370

stac_fastapi/tests/api/test_collections_search_env.py

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)