mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Updating and adding tests for new RBAC roles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user