Skip to content

Commit ab43de0

Browse files
committed
fixes test
1 parent e1d822b commit ab43de0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/models-library/src/models_library/api_schemas_catalog/services.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

packages/pytest-simcore/src/pytest_simcore/helpers/catalog_rpc_server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

services/api-server/tests/unit/api_solvers/test_api_routers_solvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77

88
import httpx
9+
from fastapi import status
910
from pydantic import TypeAdapter
1011
from pytest_mock import MockType
1112
from simcore_service_api_server._meta import API_VTAG
1213
from simcore_service_api_server.models.pagination import OnePage
1314
from simcore_service_api_server.models.schemas.solvers import Solver, SolverPort
14-
from starlette import status
1515

1616

1717
async def test_list_all_solvers(

0 commit comments

Comments
 (0)