Ejemplo n.º 1
0
def test_blob_exists(project_id, bucket_name, df):
    """
    Checks if the DataFileNameKey blob exists in the bucket
    """
    # connect to the cloud bucket
    gcs = GcsConnector(project_id, bucket_name)
    for idx, row in df.iterrows():
        records = row.to_dict()
        print records['DatafileNameKey']
        blob_status = gcs.check_blob_exists(records['DatafileNameKey'])
        assert (blob_status is True), 'Blob doesnt exist'
Ejemplo n.º 2
0
def test_blob_exists(project_id, bucket_name, df):
    """
    Checks if the DataFileNameKey blob exists in the bucket
    """
     # connect to the cloud bucket
    gcs = GcsConnector(project_id, bucket_name)
    for idx, row in df.iterrows():
        records = row.to_dict()
        print records['DatafileNameKey']
        blob_status = gcs.check_blob_exists(records['DatafileNameKey'])
        assert (blob_status is True), 'Blob doesnt exist'