Skip to content

Commit

Permalink
[vision] testing: re-enable test_async_detect_document
Browse files Browse the repository at this point in the history
fixes GoogleCloudPlatform#3753

also made the data PDF to be smaller.
  • Loading branch information
Takashi Matsuo committed May 14, 2020
1 parent ec30b6a commit 75a4f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vision/cloud-client/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import uuid

from google.cloud import storage
import pytest

import detect

Expand Down Expand Up @@ -209,7 +208,6 @@ def test_detect_crop_hints_uri(capsys):
assert 'bounds: ' in out


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

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

uri = 'gs://{}/vision/document/custom_0773375000.pdf'.format(ASSET_BUCKET)
uri = 'gs://{}/vision/document/custom_0773375000_title_only.pdf'.format(
ASSET_BUCKET)
detect.async_detect_document(
gcs_source_uri=uri,
gcs_destination_uri=GCS_DESTINATION_URI)
Expand Down
Binary file not shown.

0 comments on commit 75a4f00

Please sign in to comment.