Skip to content

Commit 3d67b73

Browse files
author
Takashi Matsuo
authored
[vision] testing: re-enable test_async_detect_document (#3761)
fixes #3753 also made the data PDF to be smaller.
1 parent fb25b01 commit 3d67b73

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
@@ -17,7 +17,6 @@
1717

1818
import backoff
1919
from google.cloud import storage
20-
import pytest
2120

2221
import detect
2322

@@ -243,7 +242,6 @@ def test_detect_crop_hints_uri(capsys):
243242
assert 'bounds: ' in out
244243

245244

246-
@pytest.mark.skip("It's constantly failing.")
247245
def test_async_detect_document(capsys):
248246
storage_client = storage.Client()
249247
bucket = storage_client.get_bucket(BUCKET)
@@ -253,7 +251,8 @@ def test_async_detect_document(capsys):
253251

254252
assert len(list(bucket.list_blobs(prefix=OUTPUT_PREFIX))) == 0
255253

256-
uri = 'gs://{}/vision/document/custom_0773375000.pdf'.format(ASSET_BUCKET)
254+
uri = 'gs://{}/vision/document/custom_0773375000_title_only.pdf'.format(
255+
ASSET_BUCKET)
257256
detect.async_detect_document(
258257
gcs_source_uri=uri,
259258
gcs_destination_uri=GCS_DESTINATION_URI)

0 commit comments

Comments
 (0)