Cost-Effective Data Pipelines by Sev Leonard

Cost-Effective Data Pipelines by Sev Leonard

Author:Sev Leonard
Language: eng
Format: epub, mobi
Publisher: O'Reilly Media, Inc.
Published: 2022-09-21T00:00:00+00:00


If you run the test you should see it passing, which is not terribly interesting:

$ cd testing $ pytest -v test_cloud_services.py::test_delete_temp test_cloud_services.py::test_delete_temp PASSED

To emulate a code bug, comment out the delete loop in delete_temp in testing/cloud_examples.py:

blobs = bucket.list_blobs(prefix) # for blob in blobs: # blob.delete()

Now the test will fail because nothing is getting deleted:

test_cloud_services.py::test_delete_temp FAILED . . . FAILED test_cloud_services.py::test_delete_temp - AssertionError: assert 0 == 2



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.