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 86da27e

Browse filesBrowse files
author
Jon Wayne Parrott
committed
Update langauge test case to deal with changing server output
Change-Id: Id4e773d2fed4a8934876535987e2c703a8504c26
1 parent e53fd58 commit 86da27e
Copy full SHA for 86da27e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-3
lines changed

‎language/cloud-client/v1/snippets_test.py

Copy file name to clipboardExpand all lines: language/cloud-client/v1/snippets_test.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222

2323
def test_sentiment_text(capsys):
24-
snippets.sentiment_text('President Obama is speaking at the White House.')
24+
snippets.sentiment_text('No! God please, no!')
2525
out, _ = capsys.readouterr()
26-
assert 'Score: 0.2' in out
26+
assert 'Score: ' in out
2727

2828

2929
def test_sentiment_file(capsys):
3030
snippets.sentiment_file(TEST_FILE_URL)
3131
out, _ = capsys.readouterr()
32-
assert 'Score: 0.2' in out
32+
assert 'Score: ' in out
3333

3434

3535
def test_entities_text(capsys):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.