diff --git a/stac_fastapi/core/stac_fastapi/core/core.py b/stac_fastapi/core/stac_fastapi/core/core.py index 979d6773..936b2553 100644 --- a/stac_fastapi/core/stac_fastapi/core/core.py +++ b/stac_fastapi/core/stac_fastapi/core/core.py @@ -255,7 +255,7 @@ async def item_collection( Args: collection_id (str): The identifier of the collection to read items from. - bbox (OOptional[BBox]): The bounding box to filter items by. + bbox (Optional[BBox]): The bounding box to filter items by. datetime (Optional[DateTimeType]): The datetime range to filter items by. limit (int): The maximum number of items to return. The default value is 10. token (str): A token used for pagination. diff --git a/stac_fastapi/tests/resources/test_collection.py b/stac_fastapi/tests/resources/test_collection.py index 97c9a5f6..13100239 100644 --- a/stac_fastapi/tests/resources/test_collection.py +++ b/stac_fastapi/tests/resources/test_collection.py @@ -56,7 +56,7 @@ async def test_update_collection_already_exists(ctx, app_client): """Test updating a collection which already exists""" ctx.collection["keywords"].append("test") resp = await app_client.put( - "/collections/{ctx.collection['id']}", json=ctx.collection + f"/collections/{ctx.collection['id']}", json=ctx.collection ) assert resp.status_code == 200