def buildTasks(self, configDir): tc = taskController(configDir, self) # Get active tasks list tc.tasks = tc.getActiveTasks(walkDir(configDir, 'ini')) tc.depTree = tc.buildDependencyTree(tc.tasks) tc.prepareEvents(tc.tasks) return tc
def test_init(self): self.appConfigure() tasksDir = self.app.appDir + os.sep + "tasks" tc = taskController(tasksDir) tc.tasks = tc.getActiveTasks(walkDir(tasksDir)) tc.buildDependencyTree(tc.tasks) tc.prepareEvents(tc.tasks)