mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 07:57:29 -02:30
adjust team admin_role / member_role assertion
This commit is contained in:
@@ -3,8 +3,12 @@ import pytest
|
|||||||
|
|
||||||
@pytest.mark.django_db()
|
@pytest.mark.django_db()
|
||||||
def test_admin_not_member(team):
|
def test_admin_not_member(team):
|
||||||
"Test to ensure we don't add admin_role as a parent to team.member_role, as "
|
"""Test to ensure we don't add admin_role as a parent to team.member_role, as
|
||||||
"this creates a cycle with organization administration, which we've decided "
|
this creates a cycle with organization administration, which we've decided
|
||||||
"to remove support for"
|
to remove support for
|
||||||
|
|
||||||
assert team.admin_role.is_ancestor_of(team.member_role) is False
|
(2016-06-16) I think this might have been resolved. I'm asserting
|
||||||
|
this to be true in the mean time.
|
||||||
|
"""
|
||||||
|
|
||||||
|
assert team.admin_role.is_ancestor_of(team.member_role) is True
|
||||||
|
|||||||
Reference in New Issue
Block a user