Example #1
0
def test_detect_document_uri(capsys):
    file_name = 'gs://{}/vision/text/screen.jpg'.format(ASSET_BUCKET)
    detect.detect_document_uri(file_name)
    out, _ = capsys.readouterr()
    assert 'class' in out
Example #2
0
def test_detect_document_http(capsys):
    uri = 'https://storage-download.googleapis.com/{}/vision/text.jpg'
    detect.detect_document_uri(uri.format(BUCKET))
    out, _ = capsys.readouterr()
    assert '37%' in out
Example #3
0
def test_detect_document_uri(capsys):
    file_name = 'gs://{}/vision/text.jpg'.format(BUCKET)
    detect.detect_document_uri(file_name)
    out, _ = capsys.readouterr()
    assert '37%' in out
def test_detect_document_http(capsys):
    uri = 'https://storage-download.googleapis.com/{}/vision/text.jpg'
    detect.detect_document_uri(uri.format(BUCKET))
    out, _ = capsys.readouterr()
    assert '37%' in out
def test_detect_document_uri(capsys):
    file_name = 'gs://{}/vision/text.jpg'.format(BUCKET)
    detect.detect_document_uri(file_name)
    out, _ = capsys.readouterr()
    assert '37%' in out
Example #6
0
def test_detect_document_uri(cloud_config, capsys):
    file_name = ('gs://{}/vision/text.jpg'.format(
                 cloud_config.storage_bucket))
    detect.detect_document_uri(file_name)
    out, _ = capsys.readouterr()
    assert '37%' in out