1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 04:58:12 +00:00

Add Entity

This commit is contained in:
J. Fernando Sánchez 2018-01-17 18:22:56 +01:00
parent 92189822d8
commit 15ab5f4c25
2 changed files with 2 additions and 1 deletions

View File

@ -327,6 +327,7 @@ for i in [
'emotionModel',
'emotionPlugin',
'emotionSet',
'entity',
'help',
'plugin',
'plugins',

View File

@ -42,7 +42,7 @@ class Sentiment140Plugin(SentimentPlugin):
from requests.
'''
from senpy.test import patch_requests
expected = {"data": [{"polarity": 10}]}
expected = {"data": [{"polarity": 4}]}
with patch_requests(expected) as (request, response):
super(Sentiment140Plugin, self).test(*args, **kwargs)
assert request.called