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)
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)
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)