Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
senpy
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
senpy
senpy
Commits
15ab5f4c
Commit
15ab5f4c
authored
Jan 17, 2018
by
J. Fernando Sánchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Entity
parent
92189822
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
senpy/models.py
senpy/models.py
+1
-0
senpy/plugins/sentiment/sentiment140/sentiment140.py
senpy/plugins/sentiment/sentiment140/sentiment140.py
+1
-1
No files found.
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
Markdown
is supported
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