Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a07a09a

Browse filesBrowse files
dizcologychenyumic
authored andcommitted
detect-pdf update (GoogleCloudPlatform#1460)
* detect-pdf update * update test
1 parent 19f7f65 commit a07a09a
Copy full SHA for a07a09a

File tree

Expand file treeCollapse file tree

2 files changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-3
lines changed

‎vision/cloud-client/detect/detect_pdf_test.py

Copy file name to clipboardExpand all lines: vision/cloud-client/detect/detect_pdf_test.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@
2525

2626

2727
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+
2832
async_detect_document(
2933
gcs_source_uri=GCS_SOURCE_URI,
3034
gcs_destination_uri=GCS_DESTINATION_URI)
3135
out, _ = capsys.readouterr()
3236

3337
assert 'Hodge conjecture' in out
38+
assert len(list(bucket.list_blobs(prefix=OUTPUT_PREFIX))) == 3
3439

35-
storage_client = storage.Client()
36-
bucket = storage_client.get_bucket(BUCKET)
3740
for blob in bucket.list_blobs(prefix=OUTPUT_PREFIX):
3841
blob.delete()
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
google-cloud-vision==0.30.1
1+
google-cloud-vision==0.31.0
22
google-cloud-storage==1.6.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.