Skip to content

Commit 983a5aa

Browse files
committed
added encoding type
1 parent a3c23ec commit 983a5aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/api/analyze_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def test_analyze_sentiment(capsys):
3333
'your face is really ugly and i hate it.')
3434

3535
sentiment = result['documentSentiment']
36-
assert sentiment['polarity'] < 0
36+
assert sentiment['score'] < 0
3737
assert sentiment['magnitude'] < 1
3838

3939
result = analyze.analyze_sentiment(
4040
'cheerio, mate - I greatly admire the pallor of your visage, and your '
4141
'angle of repose leaves little room for improvement.')
4242

4343
sentiment = result['documentSentiment']
44-
assert sentiment['polarity'] > 0
44+
assert sentiment['score'] > 0
4545
assert sentiment['magnitude'] < 1
4646

4747

0 commit comments

Comments
 (0)