def test_describe_tasks(): wf = Workflow(gbdx) taskinfo = wf.list_tasks() assert len(taskinfo) > 0 desc = wf.describe_task(taskinfo['tasks'][0]) assert isinstance(desc, dict) assert len(desc['description']) > 0
def test_describe_tasks(self): wf = Workflow(self.gbdx) taskinfo = wf.list_tasks() self.assertTrue(len(taskinfo) > 0) desc = wf.describe_task(taskinfo['tasks'][0]) self.assertTrue(isinstance(desc, dict)) self.assertTrue(len(desc['description']) > 0)
def test_list_tasks(): wf = Workflow(gbdx) taskinfo = wf.list_tasks() assert taskinfo is not None assert 'HelloGBDX' in taskinfo['tasks']
def test_list_tasks(self): wf = Workflow(self.gbdx) taskinfo = wf.list_tasks() self.assertTrue(taskinfo is not None) self.assertTrue('HelloGBDX' in taskinfo['tasks'])