Skip to content

Commit cd37714

Browse files
authored
Uses the new property id from RunAs in pytester (#4363)
## Changes Refactor to use the newly introduced property `id` from RunAs
1 parent 821de4b commit cd37714

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration/account/test_account.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ def test_create_account_level_groups(
6363
group_display_name = f"created_by_ucx_regular_group-{suffix}"
6464
# Create a group with a user and a service principal as members
6565
# to test the account level groups creation.
66-
# TODO: remove protected access to service principal id once added in pytester
6766
ws_group = make_group(
6867
display_name=group_display_name,
69-
members=[make_user().id, make_run_as()._service_principal.id], # pylint: disable=protected-access
68+
members=[make_user().id, make_run_as().id],
7069
)
7170
AccountWorkspaces(acc, [ws.get_workspace_id()]).create_account_level_groups(MockPrompts({}))
7271

0 commit comments

Comments
 (0)