Beispiel #1
0
 def __init__(self, manager, **project_state):
     if 'name' not in project_state:
         project_state['name'] = 'testproj'
     if 'manager_user' not in project_state:
         project_state['manager_user'] = '******'
     self.manager = manager
     self.project = manager.create_project(**project_state)
 def __init__(self, manager, **project_state):
     if 'name' not in project_state:
         project_state['name'] = 'testproj'
     if 'manager_user' not in project_state:
         project_state['manager_user'] = '******'
     self.manager = manager
     self.project = manager.create_project(**project_state)
Beispiel #3
0
    def __init__(self, manager, user_state=None, project_state=None):
        if not user_state:
            user_state = {}
        if not project_state:
            project_state = {}

        self.manager = manager
        if 'name' not in user_state:
            user_state['name'] = 'test1'
        if 'name' not in project_state:
            project_state['name'] = 'testproj'
        if 'manager_user' not in project_state:
            project_state['manager_user'] = '******'
        self.user = manager.create_user(**user_state)
        self.project = manager.create_project(**project_state)
    def __init__(self, manager, user_state=None, project_state=None):
        if not user_state:
            user_state = {}
        if not project_state:
            project_state = {}

        self.manager = manager
        if 'name' not in user_state:
            user_state['name'] = 'test1'
        if 'name' not in project_state:
            project_state['name'] = 'testproj'
        if 'manager_user' not in project_state:
            project_state['manager_user'] = '******'
        self.user = manager.create_user(**user_state)
        self.project = manager.create_project(**project_state)