Commit 15ab5f4c authored by J. Fernando Sánchez's avatar J. Fernando Sánchez

Add Entity

parent 92189822
...@@ -327,6 +327,7 @@ for i in [ ...@@ -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): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment