Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
workflow
pypushflow
Commits
43a5a48a
Commit
43a5a48a
authored
Apr 07, 2020
by
payno
Browse files
Link unit test suite with existing test
parent
9cf68845
Changes
4
Hide whitespace changes
Inline
Side-by-side
pypushflow/test/__init__.py
View file @
43a5a48a
...
...
@@ -26,12 +26,17 @@ __date__ = "02/04/2020"
import
unittest
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
):
test_suite
=
unittest
.
TestSuite
()
test_suite
.
addTest
(
test_actors_suite
())
test_suite
.
addTest
(
test_representation_suite
())
test_suite
.
addTest
(
test_mongodb_suite
())
test_suite
.
addTest
(
test_workflows_suite
())
return
test_suite
...
...
pypushflow/test/test_Actors.py
View file @
43a5a48a
...
...
@@ -98,4 +98,12 @@ class TestPythonActor(unittest.TestCase):
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"
)
pypushflow/test/test_UtilsMongoDb.py
View file @
43a5a48a
...
...
@@ -61,4 +61,17 @@ class TestUtilsMongoDb(unittest.TestCase):
# actorName2 = 'TestActor2'
# actorId2 = UtilsMongoDb.initActor(name=actorName2, workflowId=workflowId)
# inData = {'a': 1}
# UtilsMongoDb.addDataToActor(workflowId=workflowId, actorId=actorId1, actorData={'inData': inData})
\ No newline at end of file
# UtilsMongoDb.addDataToActor(workflowId=workflowId, actorId=actorId1, actorData={'inData': inData})
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"
)
pypushflow/test/test_Workflows.py
View file @
43a5a48a
...
...
@@ -70,3 +70,13 @@ class TestWorkflows(unittest.TestCase):
self
.
assertIsNotNone
(
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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment