We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d646550 commit 5c439b5Copy full SHA for 5c439b5
stac_fastapi/tests/resources/test_item.py
@@ -570,6 +570,15 @@ async def test_get_missing_item_collection(app_client):
570
assert resp.status_code == 404
571
572
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
582
@pytest.mark.asyncio
583
async def test_pagination_item_collection(app_client, ctx, txn_client):
584
"""Test item collection pagination links (paging extension)"""
0 commit comments