@@ -283,7 +283,7 @@ async def get_collection(
283283 assert (await service .handle (Request ("GET" , "/odp/offerings/rubber-plant" ))).status == 500
284284 assert (await service .handle (Request ("GET" , "/odp/collections/plants" ))).status == 500
285285
286- class ApplicationCatalog :
286+ class ApplicationCatalog ( Catalog ) :
287287 def operations (self ) -> list [Operation ]:
288288 return [Operation .GET_OFFERING , Operation .LIST_OFFERINGS ]
289289
@@ -296,9 +296,25 @@ async def get_offering(self, identifier: str, request: CatalogRequest) -> Offeri
296296 del identifier , request
297297 return None
298298
299- application_service = _service (cast ( Catalog , ApplicationCatalog () ))
299+ application_service = _service (ApplicationCatalog ())
300300 assert (await application_service .handle (Request ("GET" , "/odp/offerings" ))).status == 500
301301
302+ application_catalog = ApplicationCatalog ()
303+ with pytest .raises (CatalogError ):
304+ await application_catalog .search_offerings (
305+ OfferingSearchRequest (query = "plant" ), CatalogRequest ()
306+ )
307+ with pytest .raises (CatalogError ):
308+ await application_catalog .list_collections (CatalogRequest ())
309+ with pytest .raises (CatalogError ):
310+ await application_catalog .get_collection ("plants" , CatalogRequest ())
311+ with pytest .raises (CatalogError ):
312+ await application_catalog .search_collections (
313+ CollectionSearchRequest (query = "plant" ), CatalogRequest ()
314+ )
315+ with pytest .raises (CatalogError ):
316+ await application_catalog .list_collection_offerings ("plants" , CatalogRequest ())
317+
302318 enrollment = EnrollmentProtocol (name = Protocol .AEP )
303319 payment = PaymentProtocol (
304320 authentication = AuthenticationRequirement .NOT_REQUIRED , name = Protocol .MPP
0 commit comments