File tree 2 files changed +2
-3
lines changed
vision/cloud-client/detect
resources/cloud-samples-data/vision/document
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import backoff
19
19
from google .cloud import storage
20
- import pytest
21
20
22
21
import detect
23
22
@@ -243,7 +242,6 @@ def test_detect_crop_hints_uri(capsys):
243
242
assert 'bounds: ' in out
244
243
245
244
246
- @pytest .mark .skip ("It's constantly failing." )
247
245
def test_async_detect_document (capsys ):
248
246
storage_client = storage .Client ()
249
247
bucket = storage_client .get_bucket (BUCKET )
@@ -253,7 +251,8 @@ def test_async_detect_document(capsys):
253
251
254
252
assert len (list (bucket .list_blobs (prefix = OUTPUT_PREFIX ))) == 0
255
253
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 )
257
256
detect .async_detect_document (
258
257
gcs_source_uri = uri ,
259
258
gcs_destination_uri = GCS_DESTINATION_URI )
You can’t perform that action at this time.
0 commit comments