Fixed projects creation api endpoints to take organization

This commit is contained in:
Akita Noek
2016-03-24 10:22:25 -04:00
parent 342747866e
commit eccb50a253
4 changed files with 56 additions and 1 deletions

View File

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