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 16
16
import uuid
17
17
18
18
from google .cloud import storage
19
- import pytest
20
19
21
20
import detect
22
21
@@ -209,7 +208,6 @@ def test_detect_crop_hints_uri(capsys):
209
208
assert 'bounds: ' in out
210
209
211
210
212
- @pytest .mark .skip ("It's constantly failing." )
213
211
def test_async_detect_document (capsys ):
214
212
storage_client = storage .Client ()
215
213
bucket = storage_client .get_bucket (BUCKET )
@@ -219,7 +217,8 @@ def test_async_detect_document(capsys):
219
217
220
218
assert len (list (bucket .list_blobs (prefix = OUTPUT_PREFIX ))) == 0
221
219
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 )
223
222
detect .async_detect_document (
224
223
gcs_source_uri = uri ,
225
224
gcs_destination_uri = GCS_DESTINATION_URI )
You can’t perform that action at this time.
0 commit comments