Skip to content

Commit

Permalink
Fix the vision geo test. (#1518)
Browse files Browse the repository at this point in the history
Sometimes, Vision sees Zepra.  Othertimes, it sees Electra Tower.
  • Loading branch information
SurferJeffAtGoogle authored and dizcology committed Jun 22, 2018
1 parent 88fef98 commit e0b0a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/cloud-client/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ def test_detect_web_with_geo(capsys):
'resources/city.jpg')
detect.web_entities_include_geo_results(file_name)
out, _ = capsys.readouterr()
assert 'Zepra' in out
assert 'Zepra' in out or 'Electra Tower' in out


def test_detect_web_with_geo_uri(capsys):
file_name = 'gs://{}/vision/city.jpg'.format(BUCKET)
detect.web_entities_include_geo_results_uri(file_name)
out, _ = capsys.readouterr()
assert 'Zepra' in out
assert 'Zepra' in out or 'Electra Tower' in out


def test_detect_document(capsys):
Expand Down

0 comments on commit e0b0a00

Please sign in to comment.