Skip to content

Commit 3bb68e2

Browse files
committed
Update API tests to use new PUT paths
1 parent bab44e7 commit 3bb68e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stac_fastapi/api/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_build_api_with_route_dependencies(self):
5555
{"path": "/collections", "method": "PUT"},
5656
{"path": "/collections/{collectionId}", "method": "DELETE"},
5757
{"path": "/collections/{collectionId}/items", "method": "POST"},
58-
{"path": "/collections/{collectionId}/items", "method": "PUT"},
58+
{"path": "/collections/{collectionId}/items/{itemId}", "method": "PUT"},
5959
{"path": "/collections/{collectionId}/items/{itemId}", "method": "DELETE"},
6060
]
6161
dependencies = [Depends(must_be_bob)]
@@ -68,7 +68,7 @@ def test_add_route_dependencies_after_building_api(self):
6868
{"path": "/collections", "method": "PUT"},
6969
{"path": "/collections/{collectionId}", "method": "DELETE"},
7070
{"path": "/collections/{collectionId}/items", "method": "POST"},
71-
{"path": "/collections/{collectionId}/items", "method": "PUT"},
71+
{"path": "/collections/{collectionId}/items/{itemId}", "method": "PUT"},
7272
{"path": "/collections/{collectionId}/items/{itemId}", "method": "DELETE"},
7373
]
7474
api = self._build_api()

0 commit comments

Comments
 (0)