-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
stac-fastapi-elasticsearch-opensearch/stac_fastapi/tests/resources/test_collection.py
Lines 110 to 124 in d2104af
| @pytest.mark.skip(reason="Broken as of stac-fastapi v2.5.5") | |
| @pytest.mark.asyncio | |
| async def test_collection_extensions(ctx, app_client): | |
| """Test that extensions can be used to define additional top-level properties""" | |
| ctx.collection.get("stac_extensions", []).append( | |
| "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json" | |
| ) | |
| test_asset = {"title": "test", "description": "test", "type": "test"} | |
| ctx.collection["item_assets"] = {"test": test_asset} | |
| resp = await app_client.put( | |
| f"/collections/{ctx.collection['id']}", json=ctx.collection | |
| ) | |
| assert resp.status_code == 200 | |
| assert resp.json().get("item_assets", {}).get("test") == test_asset |
Metadata
Metadata
Assignees
Labels
No labels