We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45d042 commit a45c72aCopy full SHA for a45c72a
samples/snippets/detect/detect_pdf_test.py
@@ -25,14 +25,17 @@
25
26
27
def test_async_detect_document(capsys):
28
+ storage_client = storage.Client()
29
+ bucket = storage_client.get_bucket(BUCKET)
30
+ assert len(list(bucket.list_blobs(prefix=OUTPUT_PREFIX))) == 0
31
+
32
async_detect_document(
33
gcs_source_uri=GCS_SOURCE_URI,
34
gcs_destination_uri=GCS_DESTINATION_URI)
35
out, _ = capsys.readouterr()
36
37
assert 'Hodge conjecture' in out
38
+ assert len(list(bucket.list_blobs(prefix=OUTPUT_PREFIX))) == 3
39
- storage_client = storage.Client()
- bucket = storage_client.get_bucket(BUCKET)
40
for blob in bucket.list_blobs(prefix=OUTPUT_PREFIX):
41
blob.delete()
samples/snippets/detect/requirements.txt
@@ -1,2 +1,2 @@
1
-google-cloud-vision==0.30.1
+google-cloud-vision==0.31.0
2
google-cloud-storage==1.6.0
0 commit comments