mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-10-03 12:00:44 +08:00
FIX: incomplete tests testing multi batch apis
This commit is contained in:
1 parent
c9c4c2d7dc
commit
5c78d5c9e9
1 file changed
+3
@@ -134,6 +134,8 @@ class BatchAPIRun(unittest.TestCase):
|
||||
|
||||
self.assertTrue(isinstance(response, dict))
|
||||
self.assertTrue(set(response.keys()) == set(config.IMAGE_APIS))
|
||||
self.assertTrue("results" in response["fer"])
|
||||
|
||||
|
||||
def test_batch_multi_api_text(self):
|
||||
test_data = ['clearly an english sentence']
|
||||
@@ -141,6 +143,7 @@ class BatchAPIRun(unittest.TestCase):
|
||||
|
||||
self.assertTrue(isinstance(response, dict))
|
||||
self.assertTrue(set(response.keys()) == set(config.TEXT_APIS))
|
||||
self.assertTrue("results" in response["sentiment"])
|
||||
|
||||
def test_default_multi_api_text(self):
|
||||
test_data = ['clearly an english sentence']
|
||||
|
||||
Reference in new issue
Block a user