Skip to content

Commit 8dd54e7

Browse files
committed
Update pytest against latest stac-fastapi behaviour
1 parent 40d49f8 commit 8dd54e7

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

services/catalog/tests/test_authentication_catalog.py

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,21 @@ async def test_authentication_and_contents(mocker, httpx_mock: HTTPXMock, client
187187
{
188188
"rel": "self",
189189
"type": "application/json",
190+
"title": "This document",
190191
"href": "http://testserver/catalog/",
191192
**AUTHENT_REF,
192193
},
193194
{
194195
"rel": "root",
195196
"type": "application/json",
197+
"title": "Root",
196198
"href": "http://testserver/catalog/",
197199
**AUTHENT_REF,
198200
},
199201
{
200202
"rel": "data",
201203
"type": "application/json",
204+
"title": "Collections available for this Catalog",
202205
"href": "http://testserver/catalog/collections",
203206
**AUTHENT_REF,
204207
},
@@ -212,55 +215,27 @@ async def test_authentication_and_contents(mocker, httpx_mock: HTTPXMock, client
212215
{
213216
"rel": "search",
214217
"type": "application/geo+json",
215-
"title": "STAC search",
218+
"title": "STAC search [GET]",
216219
"href": "http://testserver/catalog/search",
217220
"method": "GET",
218221
**AUTHENT_REF,
219222
},
220223
{
221224
"rel": "search",
222225
"type": "application/geo+json",
223-
"title": "STAC search",
226+
"title": "STAC search [POST]",
224227
"href": "http://testserver/catalog/search",
225228
"method": "POST",
226229
**AUTHENT_REF,
227230
},
228231
{
229232
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
230233
"type": "application/schema+json",
231-
"title": "Queryables",
234+
"title": "Queryables available for this Catalog",
232235
"href": "http://testserver/catalog/queryables",
233236
"method": "GET",
234237
**AUTHENT_REF,
235238
},
236-
{
237-
"rel": "child",
238-
"type": "application/json",
239-
"title": "toto_S1_L1",
240-
"href": "http://testserver/catalog/collections/toto:S1_L1",
241-
**AUTHENT_REF,
242-
},
243-
{
244-
"rel": "child",
245-
"type": "application/json",
246-
"title": "toto_S2_L3",
247-
"href": "http://testserver/catalog/collections/toto:S2_L3",
248-
**AUTHENT_REF,
249-
},
250-
{
251-
"rel": "child",
252-
"type": "application/json",
253-
"title": "titi_S2_L1",
254-
"href": "http://testserver/catalog/collections/titi:S2_L1",
255-
**AUTHENT_REF,
256-
},
257-
{
258-
"rel": "child",
259-
"type": "application/json",
260-
"title": "pyteam_S1_L1",
261-
"href": "http://testserver/catalog/collections/pyteam:S1_L1",
262-
**AUTHENT_REF,
263-
},
264239
{
265240
"rel": "service-desc",
266241
"type": "application/vnd.oai.openapi+json;version=3.0",

0 commit comments

Comments
 (0)