Skip to content

Commit fc6624a

Browse files
Jon Wayne Parrottbusunkim96
authored andcommitted
Fix flaky NL test
Change-Id: I064c59e0c4f6d9b5ff0c888353df860dc344f74b
1 parent 839ef85 commit fc6624a

File tree

1 file changed

+1
-1
lines changed
  • packages/google-cloud-language/samples/snippets/ocr_nl

1 file changed

+1
-1
lines changed

packages/google-cloud-language/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)