Skip to content

Commit

Permalink
Add Set Endpoint Samples [(#2497)](GoogleCloudPlatform/python-docs-sa…
Browse files Browse the repository at this point in the history
…mples#2497)

* Add Set Endpoint Samples

* Add additional test result option

* Sample Request update

* Add filter_
  • Loading branch information
nnegrey authored Nov 15, 2019
1 parent 335fe6d commit 55f5162
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/snippets/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,17 @@ def test_detect_web_with_geo(capsys):
detect.web_entities_include_geo_results(file_name)
out, _ = capsys.readouterr()
out = out.lower()
assert 'zepra' in out or 'electra tower' in out or 'tel aviv' in out
assert ('zepra' in out or 'electra tower' in out or 'tel aviv' in out or
'jaffa' in out)


def test_detect_web_with_geo_uri(capsys):
file_name = 'gs://{}/vision/web/city.jpg'.format(ASSET_BUCKET)
detect.web_entities_include_geo_results_uri(file_name)
out, _ = capsys.readouterr()
out = out.lower()
assert 'zepra' in out or 'electra tower' in out or 'tel aviv' in out
assert ('zepra' in out or 'electra tower' in out or 'tel aviv' in out or
'jaffa' in out)


def test_detect_document(capsys):
Expand Down

0 comments on commit 55f5162

Please sign in to comment.