Skip to content

Commit 8eef04d

Browse files
committed
Fix reference to renamed serializer field
1 parent 9e7b99f commit 8eef04d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test_app/tests/rbac/api/test_access_lists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_user_access_list(admin_api_client, inv_rd, org_inv_rd, inventory, membe
2424

2525
user_data = {}
2626
for user_detail in response.data['results']:
27-
user_data[user_detail['username']] = user_detail['role_assignments']
27+
user_data[user_detail['username']] = user_detail['object_role_assignments']
2828

2929
assert u1.username in user_data
3030
assert len(user_data[u1.username]) == 1
@@ -54,7 +54,7 @@ def test_team_access_list(admin_api_client, inv_rd, org_inv_rd, inventory, membe
5454

5555
team_data = {}
5656
for team_detail in response.data['results']:
57-
team_data[team_detail['name']] = team_detail['role_assignments']
57+
team_data[team_detail['name']] = team_detail['object_role_assignments']
5858

5959
assert t1.name in team_data
6060
assert len(team_data[t1.name]) == 1

test_app/tests/rbac/remote/test_remote_access_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_user_access_list_remote_obj(admin_api_client, rando, foo_type, foo_rd):
1515
assert response.status_code == 200
1616
user_data = {}
1717
for user_detail in response.data['results']:
18-
user_data[user_detail['username']] = user_detail['role_assignments']
18+
user_data[user_detail['username']] = user_detail['object_role_assignments']
1919

2020
# User is shown as having direct access to the remote object
2121
assert rando.username in user_data

0 commit comments

Comments
 (0)