tests/test_google_lifesciences.py
def cleanup_google_storage(prefix, bucket_name="snakemake-testing"):
    """Given a storage prefix and a bucket, recursively delete files there
    This is intended to run at the completion of testing to ensure that
    the bucket is cleaned up.

    Arguments:
      prefix (str) : the "subfolder" or prefix for some files in the buckets
      bucket_name (str) : the name of the bucket, default snakemake-testing
    """
    client = storage.Client()
    bucket = client.get_bucket(bucket_name)
    blobs = bucket.list_blobs(prefix="source")
    for blob in blobs:
        blob.delete()
    # Using API we get an exception about bucket deletion
    shell("gsutil -m rm -r gs://{bucket.name}/* || true")
    bucket.delete()
Given a storage prefix and a bucket, recursively delete files there
    This is intended to run at the completion of testing to ensure that
    the bucket is cleaned up.

    Arguments:
      prefix (str) : the "subfolder" or prefix for some files in the buckets
      bucket_name (str) : the name of the bucket, default snakemake-testing
    
Given a storage prefix and a bucket, recursively delete files there
This is intended to run at the completion of testing to ensure that
the bucket is cleaned up.
Given a storage prefix and a bucket recursively delete files there This is intended to run at the completion of testing to ensure that the bucket is cleaned up .
def cleanup_google_storage(prefix, bucket_name="snakemake-testing"):
    client = storage.Client()
    bucket = client.get_bucket(bucket_name)
    blobs = bucket.list_blobs(prefix="source")
    for blob in blobs:
        blob.delete()
    shell("gsutil -m rm -r gs://{bucket.name}/* || true")
    bucket.delete()
def cleanup_google_storage ( prefix , bucket_name = "snakemake-testing" ) : client = storage . Client ( ) bucket = client . get_bucket ( bucket_name ) blobs = bucket . list_blobs ( prefix = "source" ) for blob in blobs : blob . delete ( ) shell ( "gsutil -m rm -r gs://{bucket.name}/* || true" ) bucket . delete ( )
Given a storage prefix and a bucket, recursively delete files there
This is intended to run at the completion of testing to ensure that
the bucket is cleaned up.
Given a storage prefix and a bucket recursively delete files there This is intended to run at the completion of testing to ensure that the bucket is cleaned up .
"""Given a storage prefix and a bucket, recursively delete files there
    This is intended to run at the completion of testing to ensure that
    the bucket is cleaned up.

    Arguments:
      prefix (str) : the "subfolder" or prefix for some files in the buckets
      bucket_name (str) : the name of the bucket, default snakemake-testing
    """ # Using API we get an exception about bucket deletion
prefix
the "subfolder" or prefix for some files in the buckets
the " subfolder " or prefix for some files in the buckets
bucket_name
the name of the bucket, default snakemake-testing
the name of the bucket default snakemake - testing