From 54c444290fd577cf37a5dd3c104247a08de6e35b Mon Sep 17 00:00:00 2001 From: Cor Zuurmond Date: Tue, 17 Dec 2024 11:31:20 +0100 Subject: [PATCH] Rename me to current_user --- tests/integration/assessment/test_dashboards.py | 8 ++++---- tests/integration/framework/test_owners.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/assessment/test_dashboards.py b/tests/integration/assessment/test_dashboards.py index 76ee3fbe96..83ed85714e 100644 --- a/tests/integration/assessment/test_dashboards.py +++ b/tests/integration/assessment/test_dashboards.py @@ -74,8 +74,8 @@ def test_redash_dashboard_ownership_is_me(runtime_ctx) -> None: owner = runtime_ctx.dashboard_ownership.owner_of(dashboard) - me = runtime_ctx.workspace_client.current_user.me() - assert owner == me.user_name + current_user = runtime_ctx.workspace_client.current_user.me() + assert owner == current_user.user_name def test_lakeview_dashboard_ownership_is_me(runtime_ctx, make_lakeview_dashboard) -> None: @@ -85,5 +85,5 @@ def test_lakeview_dashboard_ownership_is_me(runtime_ctx, make_lakeview_dashboard owner = runtime_ctx.dashboard_ownership.owner_of(dashboard) - me = runtime_ctx.workspace_client.current_user.me() - assert owner == me.user_name + current_user = runtime_ctx.workspace_client.current_user.me() + assert owner == current_user.user_name diff --git a/tests/integration/framework/test_owners.py b/tests/integration/framework/test_owners.py index f86d34238e..9367861bc8 100644 --- a/tests/integration/framework/test_owners.py +++ b/tests/integration/framework/test_owners.py @@ -86,12 +86,12 @@ def test_file_owner(make_workspace_file, ws): def test_home_directory_owner_is_me(runtime_ctx) -> None: - me = runtime_ctx.workspace_client.current_user.me() - home = f"/Users/{me.user_name}" + current_user = runtime_ctx.workspace_client.current_user.me() + home = f"/Users/{current_user.user_name}" name = runtime_ctx.workspace_path_ownership.owner_of_path(home) - assert name == me.user_name + assert name == current_user.user_name def test_workspace_path_owner_of_invalid_path(runtime_ctx) -> None: