def test_make_file_public(test_blob): gcs_to_device.make_file_public(gcs_bucket, test_blob.name) r = requests.get(test_blob.public_url) # Test for the content of the file to verify that # it's publicly accessible. assert r.text == 'This file on GCS will go to a device.'
def test_make_file_public(test_blob): gcs_to_device.make_file_public( gcs_bucket, test_blob.name) r = requests.get(test_blob.public_url) # Test for the content of the file to verify that # it's publicly accessible. assert r.text == 'This file on GCS will go to a device.'