[Zope-CVS] CVS: Packages3/workflow/tests - test_definition.py:1.3 test_instance.py:1.4
Jim Fulton
jim@zope.com
Sat, 8 Feb 2003 11:57:05 -0500
Update of /cvs-repository/Packages3/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv30464/tests
Modified Files:
test_definition.py test_instance.py
Log Message:
Changed the way the tests suites are set up, since the tests wouldn't
run for me otherwise.
=== Packages3/workflow/tests/test_definition.py 1.2 => 1.3 ===
--- Packages3/workflow/tests/test_definition.py:1.2 Wed Feb 5 20:09:34 2003
+++ Packages3/workflow/tests/test_definition.py Sat Feb 8 11:57:04 2003
@@ -47,10 +47,10 @@
def test_suite():
- suite = unittest.TestSuite()
- suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(
- ProcessDefinitionTests, ProcessDefinitionElementContainerTests))
- return suite
+ return unittest.TestSuite((
+ unittest.makeSuite(ProcessDefinitionTests),
+ unittest.makeSuite(ProcessDefinitionElementContainerTests),
+ ))
if __name__ == '__main__':
unittest.main()
=== Packages3/workflow/tests/test_instance.py 1.3 => 1.4 ===
--- Packages3/workflow/tests/test_instance.py:1.3 Fri Feb 7 16:50:53 2003
+++ Packages3/workflow/tests/test_instance.py Sat Feb 8 11:57:04 2003
@@ -80,10 +80,10 @@
def test_suite():
- suite = unittest.TestSuite()
- suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(
- ProcessInstanceTests, ProcessInstanceContainerAdapterTests))
- return suite
+ return unittest.TestSuite((
+ unittest.makeSuite(ProcessInstanceTests),
+ unittest.makeSuite(ProcessInstanceContainerAdapterTests),
+ ))
if __name__ == '__main__':
unittest.main()