Skip to content

Commit

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

also made the data PDF to be smaller.
  • Loading branch information
Takashi Matsuo authored May 15, 2020
1 parent fb25b01 commit 3d67b73
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 @@ -17,7 +17,6 @@

import backoff
from google.cloud import storage
import pytest

import detect

Expand Down Expand Up @@ -243,7 +242,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 @@ -253,7 +251,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 3d67b73

Please sign in to comment.