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
-
4
1
def test_get_workspace_client (ucacct , env_or_skip ):
5
2
# Need to switch to ucacct
6
3
workspace_id = env_or_skip ("TEST_WORKSPACE_ID" )
@@ -14,10 +11,9 @@ def test_get_workspace_id(ucws, env_or_skip):
14
11
assert ucws .get_workspace_id () == ws_id
15
12
16
13
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 )
22
18
me = w .current_user .me ()
23
19
assert me .user_name is not None
You can’t perform that action at this time.
0 commit comments