Ability to list teams attached to a project.

This commit is contained in:
Michael DeHaan
2013-04-23 11:26:50 -04:00
parent c661c0bbf2
commit a45a5c2594
4 changed files with 50 additions and 0 deletions

View File

@@ -63,9 +63,14 @@ class BaseTestMixin(object):
def make_projects(self, created_by, count=1, playbook_content=''):
results = []
if not os.path.exists(settings.PROJECTS_ROOT):
os.makedirs(settings.PROJECTS_ROOT)
for x in range(0, count):
self.object_ctr = self.object_ctr + 1
# Create temp project directory.
project_dir = tempfile.mkdtemp(dir=settings.PROJECTS_ROOT)
self._temp_project_dirs.append(project_dir)
# Create temp playbook in project (if playbook content is given).