mirror of
https://github.com/gsi-upm/senpy
synced 2024-12-22 04:58:12 +00:00
Add Entity
This commit is contained in:
parent
92189822d8
commit
15ab5f4c25
@ -327,6 +327,7 @@ for i in [
|
||||
'emotionModel',
|
||||
'emotionPlugin',
|
||||
'emotionSet',
|
||||
'entity',
|
||||
'help',
|
||||
'plugin',
|
||||
'plugins',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user