コード例 #1
0
ファイル: run.py プロジェクト: google/starthinker
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()
コード例 #2
0
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()
コード例 #3
0
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')
コード例 #4
0
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()