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 673fa94

Browse filesBrowse files
authored
1 parent 6084cd1 commit 673fa94
Copy full SHA for 673fa94

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Copy file name to clipboardExpand all lines: vision/cloud-client/detect/detect_test.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,15 @@ def test_detect_web_with_geo(capsys):
165165
detect.web_entities_include_geo_results(file_name)
166166
out, _ = capsys.readouterr()
167167
out = out.lower()
168-
assert ('zepra' in out or 'electra tower' in out or 'tel aviv' in out or
169-
'jaffa' in out)
168+
assert 'description' in out
170169

171170

172171
def test_detect_web_with_geo_uri(capsys):
173172
file_name = 'gs://{}/vision/web/city.jpg'.format(ASSET_BUCKET)
174173
detect.web_entities_include_geo_results_uri(file_name)
175174
out, _ = capsys.readouterr()
176175
out = out.lower()
177-
assert ('zepra' in out or 'electra tower' in out or 'tel aviv' in out or
178-
'jaffa' in out)
176+
assert 'description' in out
179177

180178

181179
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.