[Zodb-checkins] CVS: StandaloneZODB/bsddb3Storage/bsddb3Storage/tests - test_commitlog.py:1.7 test_create.py:1.9 test_storage_api.py:1.15 test_virgin.py:1.8 test_zodb_simple.py:1.5 testall.py:1.11
Jeremy Hylton
jeremy@zope.com
Tue, 7 Aug 2001 18:36:33 -0400
Update of /cvs-repository/StandaloneZODB/bsddb3Storage/bsddb3Storage/tests
In directory cvs.zope.org:/tmp/cvs-serv12322/bsddb3Storage/bsddb3Storage/tests
Modified Files:
test_commitlog.py test_create.py test_storage_api.py
test_virgin.py test_zodb_simple.py testall.py
Log Message:
Add test_suite() for conformance with Zope testing style
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_commitlog.py 1.6 => 1.7 ===
-def suite():
+def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(CreateCommitLogTest, 'check'))
suite.addTest(unittest.makeSuite(CommitLogStateTransitionTest, 'check'))
@@ -238,4 +238,4 @@
if __name__ == '__main__':
- unittest.main(defaultTest='suite')
+ unittest.main(defaultTest='test_suite')
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_create.py 1.8 => 1.9 ===
-def suite():
+def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalCreateTest, 'check'))
suite.addTest(unittest.makeSuite(FullCreateTest, 'check'))
@@ -66,4 +66,4 @@
if __name__ == '__main__':
- unittest.main(defaultTest='suite')
+ unittest.main(defaultTest='test_suite')
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_storage_api.py 1.14 => 1.15 ===
-def suite():
+def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalTest, 'check'))
suite.addTest(unittest.makeSuite(FullTest, 'check'))
@@ -50,4 +50,4 @@
if __name__ == '__main__':
- unittest.main(defaultTest='suite')
+ unittest.main(defaultTest='test_suite')
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_virgin.py 1.7 => 1.8 ===
-def suite():
+def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalNewInsertsTest, 'check'))
suite.addTest(unittest.makeSuite(FullNewInsertsTest, 'check'))
@@ -39,4 +39,4 @@
if __name__ == '__main__':
- unittest.main(defaultTest='suite')
+ unittest.main(defaultTest='test_suite')
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_zodb_simple.py 1.4 => 1.5 ===
-def suite():
+def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalCommitAndRead, 'check'))
suite.addTest(unittest.makeSuite(FullCommitAndRead, 'check'))
@@ -70,4 +70,4 @@
if __name__ == '__main__':
- unittest.main(defaultTest='suite')
+ unittest.main(defaultTest='test_suite')
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/testall.py 1.10 => 1.11 ===
for modname in MODULES:
mod = __import__('test_'+modname)
- alltests.addTest(mod.suite())
+ alltests.addTest(mod.test_suite())
return alltests