Skip to content

Commit 75a4f00

Browse files
author
Takashi Matsuo
committed
[vision] testing: re-enable test_async_detect_document
fixes GoogleCloudPlatform#3753 also made the data PDF to be smaller.
1 parent ec30b6a commit 75a4f00

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

vision/cloud-client/detect/detect_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import uuid
1717

1818
from google.cloud import storage
19-
import pytest
2019

2120
import detect
2221

@@ -209,7 +208,6 @@ def test_detect_crop_hints_uri(capsys):
209208
assert 'bounds: ' in out
210209

211210

212-
@pytest.mark.skip("It's constantly failing.")
213211
def test_async_detect_document(capsys):
214212
storage_client = storage.Client()
215213
bucket = storage_client.get_bucket(BUCKET)
@@ -219,7 +217,8 @@ def test_async_detect_document(capsys):
219217

220218
assert len(list(bucket.list_blobs(prefix=OUTPUT_PREFIX))) == 0
221219

222-
uri = 'gs://{}/vision/document/custom_0773375000.pdf'.format(ASSET_BUCKET)
220+
uri = 'gs://{}/vision/document/custom_0773375000_title_only.pdf'.format(
221+
ASSET_BUCKET)
223222
detect.async_detect_document(
224223
gcs_source_uri=uri,
225224
gcs_destination_uri=GCS_DESTINATION_URI)

0 commit comments

Comments
 (0)