def test_labels_uri(capsys): file_name = 'gs://{}/vision/label/wakeupcat.jpg'.format(ASSET_BUCKET) detect.detect_labels_uri(file_name) out, _ = capsys.readouterr() assert 'Labels' in out
def test_labels_http(capsys): uri = 'https://storage-download.googleapis.com/{}/vision/wakeupcat.jpg' detect.detect_labels_uri(uri.format(BUCKET)) out, _ = capsys.readouterr() assert 'Labels' in out
def test_labels_uri(capsys): file_name = 'gs://{}/vision/wakeupcat.jpg'.format(BUCKET) detect.detect_labels_uri(file_name) out, _ = capsys.readouterr() assert 'Labels' in out
def test_labels_uri(capsys): file_name = 'gs://python-docs-samples-tests/vision/wakeupcat.jpg' detect.detect_labels_uri(file_name) out, _ = capsys.readouterr() assert 'Labels' in out
def test_labels_uri(cloud_config, capsys): file_name = ('gs://{}/vision/wakeupcat.jpg'.format( cloud_config.storage_bucket)) detect.detect_labels_uri(file_name) out, _ = capsys.readouterr() assert 'Labels' in out