mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-06 08:21:50 -05:00
Fixed projects creation api endpoints to take organization
This commit is contained in:
@@ -167,6 +167,24 @@ def alice(user):
|
||||
def bob(user):
|
||||
return user('bob', False)
|
||||
|
||||
@pytest.fixture
|
||||
def rando(user):
|
||||
"Rando, the random user that doesn't have access to anything"
|
||||
return user('rando', False)
|
||||
|
||||
@pytest.fixture
|
||||
def org_admin(user, organization):
|
||||
ret = user('org-admin', False)
|
||||
organization.admin_role.members.add(ret)
|
||||
organization.member_role.members.add(ret)
|
||||
return ret
|
||||
|
||||
@pytest.fixture
|
||||
def org_member(user, organization):
|
||||
ret = user('org-member', False)
|
||||
organization.member_role.members.add(ret)
|
||||
return ret
|
||||
|
||||
@pytest.fixture
|
||||
def organizations(instance):
|
||||
def rf(organization_count=1):
|
||||
|
||||
Reference in New Issue
Block a user