Skip to content

Commit 7a56938

Browse files
committed
update
1 parent 00512b9 commit 7a56938

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

tests/integration/test_client.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
def test_get_workspace_client(ucacct, env_or_skip):
2-
# Need to switch to ucacct
3-
workspace_id = env_or_skip("TEST_WORKSPACE_ID")
4-
ws = ucacct.workspaces.get(workspace_id)
5-
w = ucacct.get_workspace_client(ws)
6-
assert w.current_user.me().active
7-
8-
9-
# TODO: need to decide if we want get_workspace_id on every client
1+
#TODO: need to decide if we want get_workspace_id on every client
102
# def test_get_workspace_id(ucws, env_or_skip):
113
# ws_id = int(env_or_skip("THIS_WORKSPACE_ID"))
124
# assert ucws.get_workspace_id() == ws_id
13-
14-
15-
def test_creating_ws_client_from_ac_client_does_not_override_config(ucacct, env_or_skip):
16-
ws_id = env_or_skip("TEST_WORKSPACE_ID")
17-
ws = ucacct.workspaces.get(ws_id)
18-
w = ucacct.get_workspace_client(ws)
19-
me = w.current_user.me()
20-
assert me.user_name is not None

tests/integration/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def create_volume(w, catalog, schema, volume):
249249
name=volume,
250250
volume_type=VolumeType.MANAGED,
251251
)
252-
return ResourceWithCleanup(lambda: w.volumes.delete(res.full_name))
252+
return ResourceWithCleanup(lambda: vc.delete(res.full_name))
253253

254254

255255
def test_files_api_upload_download(ucws, files_api, random):

0 commit comments

Comments
 (0)