def drive_exists(config, task): print('TEST: drive') if 'file' in task['drive']: if file_exists(config, task['auth'], task['drive']['file']): test_passed() elif 'not_file' in task['drive']: if not file_exists(config, task['auth'], task['drive']['not_file']): test_passed() else: test_failed()
def drive_exists(): print('TEST: drive') if 'file' in project.task['drive']: if file_exists(project.task['auth'], project.task['drive']['file']): test_passed() elif 'not_file' in project.task['drive']: if not file_exists(project.task['auth'], project.task['drive']['not_file']): test_passed() else: test_failed()
def drive_exists(): if file_exists(project.task['auth'], project.task['drive']['file']): if project.task.get('delete', False): file_delete(project.task['auth'], project.task['drive']['file']) print('PASSED') else: print('FAILED')
def drive_exists(): if file_exists(project.task['auth'], project.task['drive']['file']): if project.task.get('delete', False): file_delete(project.task['auth'], project.task['drive']['file']) test_passed() else: test_failed()