mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-10-03 12:00:44 +08:00
Add local api support, fix test case
This commit is contained in:
1 parent
6898e1ea07
commit
a3d4d85412
8 files changed
+46
-15
No files matched your search
+1
-2
@@ -20,8 +20,7 @@ class FullAPIRun(unittest.TestCase):
|
||||
test_string = "Worst song ever."
|
||||
response = sentiment(test_string)
|
||||
|
||||
self.assertTrue(isinstance(response, dict))
|
||||
self.assertEqual(posneg_set, set(response.keys()))
|
||||
self.assertTrue(isinstance(response, float))
|
||||
|
||||
def test_good_fer(self):
|
||||
fer_set = set(['Angry', 'Sad', 'Neutral', 'Surprise', 'Fear', 'Happy'])
|
||||
|
||||
Reference in new issue
Block a user