Skip to content

Commit 5c439b5

Browse files
committed
test
1 parent d646550 commit 5c439b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stac_fastapi/tests/resources/test_item.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,15 @@ async def test_get_missing_item_collection(app_client):
570570
assert resp.status_code == 404
571571

572572

573+
@pytest.mark.asyncio
574+
async def test_pagination_base_links(app_client, ctx):
575+
"""Test that a search query always contains basic links"""
576+
page = await app_client.get(f"/collections/{ctx.item['collection']}/items")
577+
578+
page_data = page.json()
579+
assert {"self", "root"}.issubset({link["rel"] for link in page_data["links"]})
580+
581+
573582
@pytest.mark.asyncio
574583
async def test_pagination_item_collection(app_client, ctx, txn_client):
575584
"""Test item collection pagination links (paging extension)"""

0 commit comments

Comments
 (0)