Skip to content

Commit

Permalink
test: remove redundant (and brittle) assertion (#8894)
Browse files Browse the repository at this point in the history
We should not check twice that the REST API 404ed on a missing workspace. Trust our exception type.
  • Loading branch information
wes-turner authored Feb 28, 2024
1 parent 59385a0 commit aab9b42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e_tests/tests/cluster/test_workspace_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,11 @@ def test_launch_in_archived() -> None:
)

# create a notebook inside the workspace
with pytest.raises(errors.NotFoundException) as e:
with pytest.raises(errors.NotFoundException):
bindings.post_LaunchNotebook(
admin_session,
body=bindings.v1LaunchNotebookRequest(workspaceId=workspace.id),
)
assert e.value.status_code == 404


# tag: no_cli
Expand Down

0 comments on commit aab9b42

Please sign in to comment.