Skip to content

Commit 8b61181

Browse files
committed
fixes tests
1 parent f3b9f65 commit 8b61181

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

services/catalog/tests/unit/with_dbs/test_api_rpc.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
from models_library.products import ProductName
1515
from models_library.rest_pagination import MAXIMUM_NUMBER_OF_ITEMS_PER_PAGE
1616
from models_library.services_history import ServiceRelease
17+
from models_library.services_regex import (
18+
COMPUTATIONAL_SERVICE_KEY_PREFIX,
19+
FRONTEND_SERVICE_KEY_PREFIX,
20+
)
1721
from models_library.services_types import ServiceKey, ServiceVersion
1822
from models_library.users import UserID
1923
from packaging import version
@@ -568,8 +572,8 @@ async def test_rpc_list_services_paginated_with_filters(
568572
assert app
569573

570574
# Create fake services with different types
571-
service_key_1 = "simcore/services/comp/test-filter-service-1"
572-
service_key_2 = "simcore/services/frontend/test-filter-service-2"
575+
service_key_1 = f"{COMPUTATIONAL_SERVICE_KEY_PREFIX}/test-filter-service-1"
576+
service_key_2 = f"{FRONTEND_SERVICE_KEY_PREFIX}/test-filter-service-2"
573577
service_version = "1.0.0"
574578

575579
fake_services = [
@@ -579,15 +583,13 @@ async def test_rpc_list_services_paginated_with_filters(
579583
team_access=None,
580584
everyone_access=None,
581585
product=product_name,
582-
service_type="computational",
583586
),
584587
create_fake_service_data(
585588
service_key_2,
586589
service_version,
587590
team_access=None,
588591
everyone_access=None,
589592
product=product_name,
590-
service_type="frontend",
591593
),
592594
]
593595

0 commit comments

Comments
 (0)