File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
services/web/server/tests/unit/with_dbs/01 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1616from models_library .products import ProductName
1717from models_library .rest_pagination import Page
1818from models_library .rpc_pagination import PageLimitInt , PageRpc
19+ from models_library .services_access import ServiceGroupAccessRightsV2
1920from models_library .services_types import ServiceKey , ServiceVersion
2021from models_library .users import UserID
2122from models_library .utils .fastapi_encoders import jsonable_encoder
@@ -195,7 +196,11 @@ async def test_get_and_patch_service(
195196 classifiers = None ,
196197 versionDisplay = "Some nice name" ,
197198 descriptionUi = True ,
198- accessRights = {1 : {"execute" : True , "write" : True }},
199+ accessRights = {
200+ 1 : ServiceGroupAccessRightsV2 .model_construct (
201+ ** {"execute" : True , "write" : True }
202+ )
203+ },
199204 )
200205 response = await client .patch (
201206 f"{ url } " , json = jsonable_encoder (update , exclude_unset = True )
You can’t perform that action at this time.
0 commit comments