Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e0b0a00

Browse filesBrowse files
SurferJeffAtGoogledizcology
authored andcommitted
Fix the vision geo test. (GoogleCloudPlatform#1518)
Sometimes, Vision sees Zepra. Othertimes, it sees Electra Tower.
1 parent 88fef98 commit e0b0a00
Copy full SHA for e0b0a00

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎vision/cloud-client/detect/detect_test.py

Copy file name to clipboardExpand all lines: vision/cloud-client/detect/detect_test.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.