File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
models-library/src/models_library/api_schemas_catalog
pytest-simcore/src/pytest_simcore/helpers
services/api-server/tests/unit/api_solvers Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ class _BaseServiceGetV2(ServiceSummary):
252252 extra = "forbid" ,
253253 populate_by_name = True ,
254254 alias_generator = snake_to_camel ,
255+ json_schema_extra = {"example" : _EXAMPLE_SLEEPER },
255256 )
256257
257258
Original file line number Diff line number Diff line change @@ -225,7 +225,11 @@ async def list_all_services_summaries_paginated(
225225 # Match service type if specified
226226 if (
227227 filters .service_type
228- and summary .service_type != filters .service_type
228+ and {
229+ ServiceType .COMPUTATIONAL : "/comp/" ,
230+ ServiceType .DYNAMIC : "/dynamic/" ,
231+ }[filters .service_type ]
232+ in summary .key
229233 ):
230234 continue
231235
Original file line number Diff line number Diff line change 66
77
88import httpx
9+ from fastapi import status
910from pydantic import TypeAdapter
1011from pytest_mock import MockType
1112from simcore_service_api_server ._meta import API_VTAG
1213from simcore_service_api_server .models .pagination import OnePage
1314from simcore_service_api_server .models .schemas .solvers import Solver , SolverPort
14- from starlette import status
1515
1616
1717async def test_list_all_solvers (
You can’t perform that action at this time.
0 commit comments