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 d4888bc

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

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎language/ocr_nl/main_test.py

Copy file name to clipboardExpand all lines: language/ocr_nl/main_test.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.