@pytest.fixture
def test_blob(cloud_config):
 bucket = storage.Client().bucket(cloud_config.storage_bucket)
 blob = Blob('encryption_test_sigil', bucket, encryption_key=TEST_ENCRYPTION_KEY_DECODED)
 content = "Hello, is it me you're looking for?"
 blob.upload_from_string(content)
 return (blob.name, content)

@ pytest . fixture def test_blob ( cloud_config ) : bucket = storage . Client ( ) . bucket ( cloud_config . storage_bucket ) blob = Blob ( 'encryption_test_sigil' , bucket , encryption_key = TEST_ENCRYPTION_KEY_DECODED ) content = "Hello, is it me you're looking for?" blob . upload_from_string ( content ) return ( blob . name , content )
provides a pre-existing blob in the test bucket .