Skip to content

Commit 668fcce

Browse files
authored
Bugfix: test_delete_ws_groups_should_delete_renamed_and_reflected_groups_only (#2541)
## Changes This PR updates an integration test that started failing after the Databricks 0.32.0 release. In this test we check the error message associated with an expected failure, but the message changed with the new version of the SDK so the test now fails. _Note: This is probably a bug introduced in the upstream SDK release._ For a call to `ws.groups.get(id)` where the ID doesn't exist: - Previously we would get the message: `Group with id $ID not found.` - As of the new release we get: `None request failed` ### Linked issues Resolves #2539. ### Tests - updated integration test
1 parent dce7f9c commit 668fcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/workspace_access/test_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def get_group(group_id: str) -> NoReturn:
115115
_ = ws.groups.get(group_id)
116116
raise KeyError(f"Group is not deleted: {group_id}")
117117

118-
with pytest.raises(NotFound, match=f"Group with id {ws_group.id} not found."):
118+
with pytest.raises(NotFound):
119119
get_group(ws_group.id)
120120

121121

0 commit comments

Comments
 (0)