def test_describe_tasks(): tr = TaskRegistry(gbdx) task_list = tr.list() assert len(task_list) > 0 desc = tr.get_definition(task_list[0]) assert isinstance(desc, dict) assert len(desc['description']) > 0
def test_delete_task(): tr = TaskRegistry(gbdx) tasks = tr.list() if not 'gbdxtools-test-task' in tasks: test_list_tasks() rv = tr.delete('gbdxtools-test-task') assert 'successfully deleted' in rv.lower()
def test_list_tasks(): tr = TaskRegistry(gbdx) task_list = tr.list() assert task_list is not None assert 'HelloGBDX' in task_list