Skip to content

Commit 7ed38a7

Browse files
author
Jon Wayne Parrott
committed
Update langauge test case to deal with changing server output
Change-Id: Id4e773d2fed4a8934876535987e2c703a8504c26
1 parent 77a2cc7 commit 7ed38a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/snippets/cloud-client/v1/snippets_test.py

Lines 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)