Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions asset/cloud-client/quickstart_exportassets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ def storage_client():

@pytest.fixture(scope='module')
def asset_bucket(storage_client):
storage_client.create_bucket(BUCKET)
bucket = storage_client.create_bucket(BUCKET)

yield BUCKET

try:
storage_client.delete_bucket(BUCKET)
bucket.delete(force=True)
except Exception as e:
print('Failed to delete bucket{}'.format(BUCKET))
raise e

yield BUCKET


def test_export_assets(asset_bucket, capsys):
dump_file_path = 'gs://{}/assets-dump.txt'.format(asset_bucket)
Expand Down