Skip to content

Commit be34b49

Browse files
SurferJeffAtGoogledizcology
authored andcommitted
Fix the vision geo test. [(#1518)](GoogleCloudPlatform/python-docs-samples#1518)
Sometimes, Vision sees Zepra. Othertimes, it sees Electra Tower.
1 parent 265ddc8 commit be34b49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/snippets/detect/detect_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ def test_detect_web_with_geo(capsys):
222222
'resources/city.jpg')
223223
detect.web_entities_include_geo_results(file_name)
224224
out, _ = capsys.readouterr()
225-
assert 'Zepra' in out
225+
assert 'Zepra' in out or 'Electra Tower' in out
226226

227227

228228
def test_detect_web_with_geo_uri(capsys):
229229
file_name = 'gs://{}/vision/city.jpg'.format(BUCKET)
230230
detect.web_entities_include_geo_results_uri(file_name)
231231
out, _ = capsys.readouterr()
232-
assert 'Zepra' in out
232+
assert 'Zepra' in out or 'Electra Tower' in out
233233

234234

235235
def test_detect_document(capsys):

0 commit comments

Comments
 (0)