From 15ab5f4c254e2511110478afe3e0eb98bf4057ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Wed, 17 Jan 2018 18:22:56 +0100 Subject: [PATCH] Add Entity --- senpy/models.py | 1 + senpy/plugins/sentiment/sentiment140/sentiment140.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/senpy/models.py b/senpy/models.py index 195693f..d8f6eb9 100644 --- a/senpy/models.py +++ b/senpy/models.py @@ -327,6 +327,7 @@ for i in [ 'emotionModel', 'emotionPlugin', 'emotionSet', + 'entity', 'help', 'plugin', 'plugins', diff --git a/senpy/plugins/sentiment/sentiment140/sentiment140.py b/senpy/plugins/sentiment/sentiment140/sentiment140.py index 782e06d..d10e010 100644 --- a/senpy/plugins/sentiment/sentiment140/sentiment140.py +++ b/senpy/plugins/sentiment/sentiment140/sentiment140.py @@ -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