Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
15ab5f4c
Commit
15ab5f4c
authored
Jan 17, 2018
by
J. Fernando Sánchez
Browse files
Add Entity
parent
92189822
Changes
2
Hide whitespace changes
Inline
Side-by-side
senpy/models.py
View file @
15ab5f4c
...
...
@@ -327,6 +327,7 @@ for i in [
'emotionModel'
,
'emotionPlugin'
,
'emotionSet'
,
'entity'
,
'help'
,
'plugin'
,
'plugins'
,
...
...
senpy/plugins/sentiment/sentiment140/sentiment140.py
View file @
15ab5f4c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment