Skip to content

Commit 3a1d60f

Browse files
committed
@pcrespov models.py -> controller_rest_schemas.py
1 parent ec359b0 commit 3a1d60f

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

services/web/server/src/simcore_service_webserver/catalog/_api_units.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
from models_library.services import BaseServiceIOModel, ServiceInput, ServiceOutput
44
from pint import PintError, UnitRegistry
55

6-
from ._models import ServiceInputGetFactory, ServiceOutputGetFactory, get_unit_name
6+
from .controller_rest_schemas import (
7+
ServiceInputGetFactory,
8+
ServiceOutputGetFactory,
9+
get_unit_name,
10+
)
711

812

913
def _get_type_name(port: BaseServiceIOModel) -> str:

services/web/server/src/simcore_service_webserver/catalog/_controller_rest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
DefaultPricingUnitForServiceNotFoundError,
4444
reraise_catalog_exceptions_as_http_errors,
4545
)
46-
from ._models import CatalogRequestContext, ListServiceParams, ServicePathParams
46+
from .controller_rest_schemas import (
47+
CatalogRequestContext,
48+
ListServiceParams,
49+
ServicePathParams,
50+
)
4751

4852
_logger = logging.getLogger(__name__)
4953

services/web/server/src/simcore_service_webserver/catalog/_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from ..rabbitmq import get_rabbitmq_rpc_client
3030
from . import _catalog_rest_client
3131
from ._api_units import can_connect, replace_service_input_outputs
32-
from ._models import (
32+
from .controller_rest_schemas import (
3333
CatalogRequestContext,
3434
ServiceInputGetFactory,
3535
ServiceOutputGetFactory,

services/web/server/tests/unit/with_dbs/01/test_catalog_handlers__services.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
from pytest_simcore.helpers.typing_env import EnvVarsDict
3131
from pytest_simcore.helpers.webserver_login import UserInfoDict
3232
from servicelib.aiohttp import status
33-
from simcore_service_webserver.catalog._models import ServiceInputGet, ServiceOutputGet
33+
from simcore_service_webserver.catalog.controller_rest_schemas import (
34+
ServiceInputGet,
35+
ServiceOutputGet,
36+
)
3437
from simcore_service_webserver.db.models import UserRole
3538

3639

0 commit comments

Comments
 (0)