mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 00:37:37 -02:30
update to fix missing options and fix pep8
This commit is contained in:
@@ -48,6 +48,7 @@ def test_grant_workflow_permission(run_module, admin_user, organization, state):
|
||||
else:
|
||||
assert rando not in wfjt.execute_role
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.parametrize('state', ('present', 'absent'))
|
||||
def test_grant_workflow_list_permission(run_module, admin_user, organization, state):
|
||||
@@ -70,6 +71,7 @@ def test_grant_workflow_list_permission(run_module, admin_user, organization, st
|
||||
else:
|
||||
assert rando not in wfjt.execute_role
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.parametrize('state', ('present', 'absent'))
|
||||
def test_grant_workflow_approval_permission(run_module, admin_user, organization, state):
|
||||
@@ -91,6 +93,7 @@ def test_grant_workflow_approval_permission(run_module, admin_user, organization
|
||||
else:
|
||||
assert rando not in wfjt.approval_role
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_invalid_role(run_module, admin_user, project):
|
||||
rando = User.objects.create(username='rando')
|
||||
|
||||
Reference in New Issue
Block a user