File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -2760,29 +2760,24 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27602760 assert e .value .url == f"{ mcStorage .url } v1/project/testpluginstorage"
27612761
27622762
2763- def dummy_mcStorage ():
2764- client = create_client (API_USER , USER_PWD )
2765- workspace_name = create_workspace_for_client (client , STORAGE_WORKSPACE )
2766- print (workspace_name )
2763+ def dummy_mcStorage (mcStorage : MerginClient ):
27672764 client_workspace = None
2768- for workspace in client .workspaces_list ():
2769- if workspace ["name" ] == workspace_name :
2765+ for workspace in mcStorage .workspaces_list ():
2766+ if workspace ["name" ] == STORAGE_WORKSPACE :
27702767 client_workspace = workspace
27712768 break
27722769 client_workspace_id = client_workspace ["id" ]
27732770 client_workspace_storage = client_workspace ["storage" ]
2774-
2775- client .patch (
2771+
2772+ mcStorage .patch (
27762773 f"/v1/tests/workspaces/{ client_workspace_id } " ,
27772774 {
27782775 "limits_override" : {
27792776 "storage" : client_workspace_storage ,
2780- "projects" : 1 ,
2781- "monthly_contributors" : 500 ,
2777+ "projects" : 50 ,
2778+ "monthly_contributors" : 1000 ,
27822779 "api_allowed" : True ,
27832780 }
27842781 },
27852782 {"Content-Type" : "application/json" },
27862783 )
2787-
2788- return client
You can’t perform that action at this time.
0 commit comments