mirror of
https://github.com/ansible/awx.git
synced 2026-07-29 08:59:55 -02:30
Fix flake8 E302 errors.
This commit is contained in:
@@ -18,6 +18,7 @@ def test_team_access_attach(rando, team, inventory):
|
||||
data = {'id': inventory.admin_role.pk}
|
||||
assert not access.can_attach(team, inventory.admin_role, 'member_role.children', data, False)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_user_access_attach(rando, inventory):
|
||||
inventory.read_role.members.add(rando)
|
||||
@@ -25,6 +26,7 @@ def test_user_access_attach(rando, inventory):
|
||||
data = {'id': inventory.admin_role.pk}
|
||||
assert not access.can_attach(rando, inventory.admin_role, 'roles', data, False)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_role_access_attach(rando, inventory):
|
||||
inventory.read_role.members.add(rando)
|
||||
|
||||
Reference in New Issue
Block a user