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