Skip to content

Commit 4f87421

Browse files
committed
Fix flaky test assertion
1 parent 707a22a commit 4f87421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_app/tests/rbac/api/test_access_assignment_uuid_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_team_access_list_related_links_use_ansible_id(self, admin_api_client, i
152152
assert expected_ansible_id in team_data['related']['details']
153153
# Check that the URL ends with the ansible_id, not the primary key
154154
assert team_data['related']['details'].endswith(f'{expected_ansible_id}/')
155-
assert not team_data['related']['details'].endswith(f'{team.pk}/')
155+
assert not team_data['related']['details'].endswith(f'/{team.pk}/')
156156

157157
def test_user_access_list_fallback_to_pk_when_no_resource(self, admin_api_client, inventory, inv_rd):
158158
"""Test fallback to primary key when user has no resource (edge case)"""

0 commit comments

Comments
 (0)