Skip to content

Commit abf90c0

Browse files
author
Jon Wayne Parrott
committed
Fix flaky NL test
Change-Id: I064c59e0c4f6d9b5ff0c888353df860dc344f74b
1 parent 2566f5b commit abf90c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/ocr_nl/main_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_text_returns_entities():
5959
text = "Holmes and Watson walked to the cafe."
6060
text_analyzer = main.TextAnalyzer()
6161
entities = text_analyzer.nl_detect(text)
62-
assert len(entities) == 2
62+
assert entities
6363
etype, ename, salience, wurl = text_analyzer.extract_entity_info(
6464
entities[0])
6565
assert ename == 'holmes'

0 commit comments

Comments
 (0)