File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- import pytest
2-
3-
41def test_get_workspace_client (ucacct , env_or_skip ):
52 # Need to switch to ucacct
63 workspace_id = env_or_skip ("TEST_WORKSPACE_ID" )
@@ -14,10 +11,9 @@ def test_get_workspace_id(ucws, env_or_skip):
1411 assert ucws .get_workspace_id () == ws_id
1512
1613
17- def test_creating_ws_client_from_ac_client_does_not_override_config (a ):
18- wss = list (a .workspaces .list ())
19- if len (wss ) == 0 :
20- pytest .skip ("no workspaces" )
21- w = a .get_workspace_client (wss [0 ])
14+ def test_creating_ws_client_from_ac_client_does_not_override_config (ucacct , env_or_skip ):
15+ ws_id = env_or_skip ('TEST_WORKSPACE_ID' )
16+ ws = ucacct .workspaces .get (ws_id )
17+ w = ucacct .get_workspace_client (ws )
2218 me = w .current_user .me ()
2319 assert me .user_name is not None
You can’t perform that action at this time.
0 commit comments