Skip to content

Commit c9e6c63

Browse files
authored
[Tech Debt] removing notfound if not required in test_install.py (#3826)
<!-- REMOVE IRRELEVANT COMMENTS BEFORE CREATING A PULL REQUEST --> ## Changes <!-- Summary of your changes that are easy to understand. Add screenshots when necessary --> ### Linked issues <!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. See https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> Resolves #2700 ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] added unit tests
1 parent 6794486 commit c9e6c63

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/unit/install/test_install.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ def mock_installation_extra_jobs():
9696
)
9797

9898

99-
def not_found(_):
100-
msg = "save_config"
101-
raise NotFound(msg)
102-
103-
10499
def test_create_database(ws, caplog, mock_installation, any_prompt) -> None:
105100
sql_backend = MockBackend(
106101
fails_on_first={'CREATE TABLE': '[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column, variable is incorrect'}
@@ -484,7 +479,6 @@ def test_create_cluster_policy(ws, mock_installation) -> None:
484479
r".*": "",
485480
}
486481
)
487-
ws.workspace.get_status = not_found
488482
install = WorkspaceInstaller(ws).replace(
489483
prompts=prompts,
490484
installation=mock_installation,
@@ -1101,7 +1095,6 @@ def test_open_config(ws, mocker, mock_installation):
11011095
r".*": "",
11021096
}
11031097
)
1104-
ws.workspace.get_status = not_found
11051098

11061099
install = WorkspaceInstaller(ws).replace(
11071100
prompts=prompts,
@@ -1729,7 +1722,6 @@ def test_save_config_ext_hms(ws, mock_installation) -> None:
17291722
r".*": "",
17301723
}
17311724
)
1732-
ws.workspace.get_status = not_found
17331725
install = WorkspaceInstaller(ws).replace(
17341726
prompts=prompts,
17351727
installation=mock_installation,

0 commit comments

Comments
 (0)