Skip to content

Commit

Permalink
vision: fix flaky test (#3091)
Browse files Browse the repository at this point in the history
Fix: #2876
  • Loading branch information
nnegrey authored Mar 12, 2020
1 parent 6084cd1 commit 673fa94
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vision/cloud-client/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,15 @@ 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 or
'jaffa' in out)
assert 'description' 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 or
'jaffa' in out)
assert 'description' in out


def test_detect_document(capsys):
Expand Down

0 comments on commit 673fa94

Please sign in to comment.