Skip to content

Collections extension test broken as of stac-fastapi v2.5.5 #238

Closed
@jonhealy1

Description

@jonhealy1

@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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions