Commit 303c11d1 authored by 's avatar

- removed broken run function and unittest.main calls

parent 3c63d0b0
......@@ -11,8 +11,6 @@
#
##############################################################################
""" Unit tests for DCWorkflow module.
$Id$
"""
import unittest
......@@ -184,7 +182,3 @@ def test_suite():
return unittest.TestSuite((
unittest.makeSuite(DCWorkflowDefinitionTests),
))
if __name__ == '__main__':
from Products.CMFCore.testing import run
run(test_suite())
......@@ -11,8 +11,6 @@
#
##############################################################################
"""DCWorkflow export / import unit tests.
$Id$
"""
import unittest
......@@ -2549,13 +2547,10 @@ class Test_importWorkflow(_WorkflowSetup, _GuardChecker):
self.assertEqual(scripts['doc'].meta_type, 'DTML Document')
self.assertEqual(scripts['bar'].meta_type, 'Script (Python)')
def test_suite():
return unittest.TestSuite((
unittest.makeSuite( WorkflowDefinitionConfiguratorTests ),
unittest.makeSuite( Test_exportWorkflow ),
unittest.makeSuite( Test_importWorkflow ),
))
if __name__ == '__main__':
from Products.CMFCore.testing import run
run(test_suite())
......@@ -11,8 +11,6 @@
#
##############################################################################
""" Guard tests.
$Id$
"""
import unittest
......@@ -265,6 +263,3 @@ def test_suite():
return unittest.TestSuite((
unittest.makeSuite(TestGuard),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
......@@ -11,8 +11,6 @@
#
##############################################################################
""" Unit tests of role-mapping machinery.
$Id$
"""
import unittest
......@@ -67,6 +65,3 @@ def test_suite():
return unittest.TestSuite((
unittest.makeSuite(RoleMapTests),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
Markdown is supported
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