update to fix missing options and fix pep8

This commit is contained in:
sean-m-sullivan
2020-10-19 15:15:33 -05:00
parent 4151361420
commit e416b55b1a
2 changed files with 7 additions and 2 deletions

View File

@@ -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')