mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-06-30 16:40:38 +08:00
Add local api support, fix test case
This commit is contained in:
+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