Commit 43a5a48a authored by payno's avatar payno
Browse files

Link unit test suite with existing test

parent 9cf68845
...@@ -26,12 +26,17 @@ __date__ = "02/04/2020" ...@@ -26,12 +26,17 @@ __date__ = "02/04/2020"
import unittest import unittest
from .test_representation import suite as test_representation_suite from .test_representation import suite as test_representation_suite
#from .test_Workflows import suite as test_workflows_suite from .test_Actors import suite as test_actors_suite
from .test_UtilsMongoDb import suite as test_mongodb_suite
from .test_Workflows import suite as test_workflows_suite
def suite(loader=None): def suite(loader=None):
test_suite = unittest.TestSuite() test_suite = unittest.TestSuite()
test_suite.addTest(test_actors_suite())
test_suite.addTest(test_representation_suite()) test_suite.addTest(test_representation_suite())
test_suite.addTest(test_mongodb_suite())
test_suite.addTest(test_workflows_suite())
return test_suite return test_suite
......
...@@ -98,4 +98,12 @@ class TestPythonActor(unittest.TestCase): ...@@ -98,4 +98,12 @@ class TestPythonActor(unittest.TestCase):
logger.info(outData) logger.info(outData)
def suite():
test_suite = unittest.TestSuite()
for ui in (TestPythonActor, ):
test_suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(ui))
return test_suite
if __name__ == '__main__':
unittest.main(defaultTest="suite")
...@@ -61,4 +61,17 @@ class TestUtilsMongoDb(unittest.TestCase): ...@@ -61,4 +61,17 @@ class TestUtilsMongoDb(unittest.TestCase):
# actorName2 = 'TestActor2' # actorName2 = 'TestActor2'
# actorId2 = UtilsMongoDb.initActor(name=actorName2, workflowId=workflowId) # actorId2 = UtilsMongoDb.initActor(name=actorName2, workflowId=workflowId)
# inData = {'a': 1} # inData = {'a': 1}
# UtilsMongoDb.addDataToActor(workflowId=workflowId, actorId=actorId1, actorData={'inData': inData}) # UtilsMongoDb.addDataToActor(workflowId=workflowId, actorId=actorId1, actorData={'inData': inData})
\ No newline at end of file
def suite():
test_suite = unittest.TestSuite()
for ui in (TestUtilsMongoDb, ):
test_suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(ui))
return test_suite
if __name__ == '__main__':
unittest.main(defaultTest="suite")
...@@ -70,3 +70,13 @@ class TestWorkflows(unittest.TestCase): ...@@ -70,3 +70,13 @@ class TestWorkflows(unittest.TestCase):
self.assertIsNotNone(outData) self.assertIsNotNone(outData)
self.assertTrue('WorkflowException' in outData) self.assertTrue('WorkflowException' in outData)
def suite():
test_suite = unittest.TestSuite()
for ui in (TestWorkflows, ):
test_suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(ui))
return test_suite
if __name__ == '__main__':
unittest.main(defaultTest="suite")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment