Skip to content

Commit f0f65bd

Browse files
authored
fix tests failing locally (#2616)
## Changes Fix tests failing locally ### Linked issues None ### Functionality None ### Tests - [x] ran unit tests Co-authored-by: Eric Vergnaud <[email protected]>
1 parent ccd15b3 commit f0f65bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def test_alias(ws):
384384

385385
def test_save_storage_and_principal_azure_no_azure_cli(ws):
386386
ws.config.is_azure = True
387+
ws.config.is_aws = False
387388
ctx = WorkspaceContext(ws)
388389
with pytest.raises(ValueError):
389390
principal_prefix_access(ws, ctx, False)
@@ -413,7 +414,9 @@ def test_save_storage_and_principal_aws(ws, acc_client):
413414

414415

415416
def test_save_storage_and_principal_gcp(ws):
416-
ctx = WorkspaceContext(ws).replace(is_aws=False, is_azure=False)
417+
ws.config.is_azure = False
418+
ws.config.is_aws = False
419+
ctx = WorkspaceContext(ws)
417420
with pytest.raises(ValueError):
418421
principal_prefix_access(ws, ctx=ctx)
419422

0 commit comments

Comments
 (0)