8000 Fix flaky NL test · msagarwala/python-docs-samples@d4888bc · GitHub
[go: up one dir, main page]

Skip to content

Commit d4888bc

Browse files
author
Jon Wayne Parrott
committed
Fix flaky NL test
Change-Id: I064c59e0c4f6d9b5ff0c888353df860dc344f74b
1 parent a2962f8 commit d4888bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/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)
0