예제 #1
0
def test_before_and_after(storage: object):

    assert storage.bucket_name

    manage.ensure_storage(storage)
    yield
    manage.drop_storage(storage, force=True)
예제 #2
0
def drop_storage(alias: str, force: bool):
    """Drops a storage. The storage must be empty."""
    manage.drop_storage(storages.storage(alias), force=force)
예제 #3
0
def test_before_and_after(storage: object):
    manage.ensure_storage(storage)
    yield
    manage.drop_storage(storage, force=True)