1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
######################################################################
#
# File: test/integration/cleanup_buckets.py
#
# Copyright 2021 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from __future__ import annotations
from test.integration.helpers import authorize
from . import get_b2_auth_data
from .bucket_cleaner import BucketCleaner
from .test_raw_api import cleanup_old_buckets
if __name__ == '__main__':
cleanup_old_buckets()
BucketCleaner(
dont_cleanup_old_buckets=False, b2_api=authorize(get_b2_auth_data())[0]
).cleanup_buckets()
|