We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c573eab commit dd4a102Copy full SHA for dd4a102
asset/snippets/snippets/quickstart_exportassets_test.py
@@ -33,16 +33,16 @@ def storage_client():
33
34
@pytest.fixture(scope='module')
35
def asset_bucket(storage_client):
36
- storage_client.create_bucket(BUCKET)
+ bucket = storage_client.create_bucket(BUCKET)
37
+
38
+ yield BUCKET
39
40
try:
- storage_client.delete_bucket(BUCKET)
41
+ bucket.delete(force=True)
42
except Exception as e:
43
print('Failed to delete bucket{}'.format(BUCKET))
44
raise e
45
- yield BUCKET
-
46
47
def test_export_assets(asset_bucket, capsys):
48
dump_file_path = 'gs://{}/assets-dump.txt'.format(asset_bucket)
0 commit comments