コード例 #1
0
def setup_gdrive_cloud(remote_url, dvc):
    config = copy.deepcopy(TEST_CONFIG)
    config["remote"][TEST_REMOTE] = {
        "url": remote_url,
        "gdrive_client_id": TEST_GDRIVE_CLIENT_ID,
        "gdrive_client_secret": TEST_GDRIVE_CLIENT_SECRET,
    }

    dvc.config = config
    remote = DataCloud(dvc).get_remote()
    remote._create_remote_dir("root", remote.path_info.path)
コード例 #2
0
ファイル: test_data_cloud.py プロジェクト: learningdymyr/dvc
def setup_gdrive_cloud(remote_url, dvc):
    config = copy.deepcopy(TEST_CONFIG)
    config["remote"][TEST_REMOTE] = {
        "url": remote_url,
        "gdrive_service_account_email": "test",
        "gdrive_service_account_p12_file_path": "test.p12",
        "gdrive_use_service_account": True,
    }

    dvc.config = config
    remote = DataCloud(dvc).get_remote()
    remote._create_remote_dir("root", remote.path_info.path)
コード例 #3
0
ファイル: test_data_cloud.py プロジェクト: pratikfalke/dvc
def setup_gdrive_cloud(remote_url, dvc):
    config = copy.deepcopy(TEST_CONFIG)
    config[TEST_SECTION][Config.SECTION_REMOTE_URL] = remote_url
    config[TEST_SECTION][
        Config.SECTION_GDRIVE_CLIENT_ID
    ] = TEST_GDRIVE_CLIENT_ID
    config[TEST_SECTION][
        Config.SECTION_GDRIVE_CLIENT_SECRET
    ] = TEST_GDRIVE_CLIENT_SECRET

    dvc.config.config = config
    remote = DataCloud(dvc).get_remote()
    remote._create_remote_dir("root", remote.path_info.path)