File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -429,10 +429,21 @@ def test_save_storage_and_principal_gcp(ws):
429
429
principal_prefix_access (ws , ctx = ctx )
430
430
431
431
432
- def test_migrate_acls_calls_workspace_id (ws ) -> None :
433
- ctx = WorkspaceContext (ws )
434
- migrate_acls (ws , ctx = ctx )
435
- ws .get_workspace_id .assert_called ()
432
+ @pytest .mark .parametrize ("run_as_collection" , [True , False ])
433
+ def test_migrate_acls_calls_workspace_id (
434
+ run_as_collection ,
435
+ workspace_clients ,
436
+ acc_client ,
437
+ ) -> None :
438
+ if not run_as_collection :
439
+ workspace_clients = [workspace_clients [0 ]]
440
+ migrate_acls (
441
+ workspace_clients [0 ],
442
+ run_as_collection = run_as_collection ,
443
+ a = acc_client ,
444
+ )
445
+ for workspace_client in workspace_clients :
446
+ workspace_client .get_workspace_id .assert_called ()
436
447
437
448
438
449
def test_migrate_credentials_azure (ws , acc_client ):
You can’t perform that action at this time.
0 commit comments