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