Exemple #1
0
def test_detect_properties_uri(capsys):
    file_name = 'gs://{}/vision/landmark/pofa.jpg'.format(ASSET_BUCKET)
    detect.detect_properties_uri(file_name)
    out, _ = capsys.readouterr()
    assert 'frac' in out
Exemple #2
0
def test_detect_properties_http(capsys):
    uri = 'https://storage-download.googleapis.com/{}/vision/landmark.jpg'
    detect.detect_properties_uri(uri.format(BUCKET))
    out, _ = capsys.readouterr()
    assert 'frac' in out
def test_detect_properties_http(capsys):
    uri = 'https://storage-download.googleapis.com/{}/vision/landmark.jpg'
    detect.detect_properties_uri(uri.format(BUCKET))
    out, _ = capsys.readouterr()
    assert 'frac' in out
def test_detect_properties_uri(capsys):
    file_name = 'gs://{}/vision/landmark.jpg'.format(BUCKET)
    detect.detect_properties_uri(file_name)
    out, _ = capsys.readouterr()
    assert 'frac' in out
Exemple #5
0
def test_detect_properties_uri(capsys):
    file_name = 'gs://python-docs-samples-tests/vision/landmark.jpg'
    detect.detect_properties_uri(file_name)
    out, _ = capsys.readouterr()
    assert 'frac' in out
Exemple #6
0
def test_detect_properties_uri(cloud_config, capsys):
    file_name = ('gs://{}/vision/landmark.jpg'.format(
                 cloud_config.storage_bucket))
    detect.detect_properties_uri(file_name)
    out, _ = capsys.readouterr()
    assert 'frac' in out