def test_safe_search_http(capsys): uri = 'https://storage-download.googleapis.com/{}' \ '/vision/label/wakeupcat.jpg' detect.detect_safe_search_uri(uri.format(ASSET_BUCKET)) out, _ = capsys.readouterr() assert 'VERY_LIKELY' in out assert 'racy: ' in out
def test_safe_search_uri(capsys): file_name = 'gs://{}/vision/label/wakeupcat.jpg'.format(ASSET_BUCKET) detect.detect_safe_search_uri(file_name) out, _ = capsys.readouterr() assert 'VERY_LIKELY' in out assert 'racy: ' in out
def test_safe_search_http(capsys): uri = 'https://storage-download.googleapis.com/{}/vision/wakeupcat.jpg' detect.detect_safe_search_uri(uri.format(BUCKET)) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out
def test_safe_search_uri(capsys): file_name = 'gs://{}/vision/wakeupcat.jpg'.format(BUCKET) detect.detect_safe_search_uri(file_name) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out
def test_safe_search_uri(capsys): file_name = 'gs://python-docs-samples-tests/vision/wakeupcat.jpg' detect.detect_safe_search_uri(file_name) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out
def test_safe_search_uri(cloud_config, capsys): file_name = ('gs://{}/vision/wakeupcat.jpg'.format( cloud_config.storage_bucket)) detect.detect_safe_search_uri(file_name) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out