File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
services/catalog/tests/unit/with_dbs Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1414from models_library .products import ProductName
1515from models_library .rest_pagination import MAXIMUM_NUMBER_OF_ITEMS_PER_PAGE
1616from models_library .services_history import ServiceRelease
17+ from models_library .services_regex import (
18+ COMPUTATIONAL_SERVICE_KEY_PREFIX ,
19+ FRONTEND_SERVICE_KEY_PREFIX ,
20+ )
1721from models_library .services_types import ServiceKey , ServiceVersion
1822from models_library .users import UserID
1923from 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
You can’t perform that action at this time.
0 commit comments