1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 08:12:27 +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', 'emotionModel',
'emotionPlugin', 'emotionPlugin',
'emotionSet', 'emotionSet',
'entity',
'help', 'help',
'plugin', 'plugin',
'plugins', 'plugins',

View File

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