Skip to content

Commit

Permalink
Remove legacy test
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Dec 17, 2024
1 parent 8173ace commit aece7ca
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/unit/assessment/test_dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,21 +587,6 @@ def test_lakeview_dashboard_crawler_list_queries_handles_not_found(caplog, mock_
ws.lakeview.get.assert_called_once_with("did")


def test_dashboard_ownership_owner_of_from_user_display_name() -> None:
administrator_locator = create_autospec(AdministratorLocator)
ws = create_autospec(WorkspaceClient)
ws.users.get.return_value = User(display_name="Cor")
workspace_path_ownership = create_autospec(WorkspacePathOwnership)
ownership = DashboardOwnership(administrator_locator, ws, workspace_path_ownership)

owner = ownership.owner_of(Dashboard("id", creator_id="123456789"))

assert owner == "Cor"
administrator_locator.get_workspace_administrator.assert_not_called()
ws.users.get.assert_called_with("123456789")
workspace_path_ownership.owner_of_path.assert_not_called()


def test_dashboard_ownership_owner_of_from_user_email() -> None:
administrator_locator = create_autospec(AdministratorLocator)
ws = create_autospec(WorkspaceClient)
Expand Down

0 comments on commit aece7ca

Please sign in to comment.