Updating and adding tests for new RBAC roles

This commit is contained in:
Wayne Witzel III
2018-02-02 16:09:39 +00:00
parent 9fdd00785f
commit fbece6bdde
5 changed files with 55 additions and 14 deletions

View File

@@ -244,8 +244,7 @@ class TestWorkflowAccessMethods:
def test_workflow_can_add(self, workflow, user_unit):
organization = Organization(name='test-org')
workflow.organization = organization
organization.admin_role = Role()
organization.workflow_admin_role = Role()
def mock_get_object(Class, **kwargs):
if Class == Organization:
return organization