File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
stac_fastapi/tests/extensions Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,14 @@ async def test_filter_extension_landing_page_link(app_client, ctx):
2020
2121
2222@pytest .mark .asyncio
23- async def test_filter_extension_collection_link (app_client , load_test_data ):
23+ async def test_filter_extension_collection_link (app_client , ctx ):
2424 """Test creation and deletion of a collection"""
25- test_collection = load_test_data ("test_collection.json" )
26- test_collection ["id" ] = "test"
2725
28- resp = await app_client .post ("/collections" , json = test_collection )
29- assert resp .status_code == 201
30-
31- resp = await app_client .get (f"/collections/{ test_collection ['id' ]} " )
26+ resp = await app_client .get (f"/collections/{ ctx .collection ['id' ]} " )
3227 resp_json = resp .json ()
3328 keys = [link ["rel" ] for link in resp_json ["links" ]]
3429 assert "queryables" in keys
3530
36- resp = await app_client .delete (f"/collections/{ test_collection ['id' ]} " )
37- assert resp .status_code == 204
38-
3931
4032@pytest .mark .asyncio
4133async def test_search_filters_post (app_client , ctx ):
You can’t perform that action at this time.
0 commit comments