Commit 0403ea4b authored by Jeremy Hylton's avatar Jeremy Hylton

Add test_suite() for conformance with Zope testing style

parent f03a02bd
......@@ -226,7 +226,7 @@ class FullLogTest(BaseSetupTearDown):
def suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(CreateCommitLogTest, 'check'))
suite.addTest(unittest.makeSuite(CommitLogStateTransitionTest, 'check'))
......@@ -238,4 +238,4 @@ def suite():
if __name__ == '__main__':
unittest.main(defaultTest='suite')
unittest.main(defaultTest='test_suite')
......@@ -56,7 +56,7 @@ class FullOpenExistingTest(BerkeleyTestBase.BerkeleyTestBase,
def suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalCreateTest, 'check'))
suite.addTest(unittest.makeSuite(FullCreateTest, 'check'))
......@@ -66,4 +66,4 @@ def suite():
if __name__ == '__main__':
unittest.main(defaultTest='suite')
unittest.main(defaultTest='test_suite')
......@@ -41,7 +41,7 @@ class FullTest(BerkeleyTestBase.FullTestBase, BasicStorage, VersionStorage,
def suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalTest, 'check'))
suite.addTest(unittest.makeSuite(FullTest, 'check'))
......@@ -50,4 +50,4 @@ def suite():
if __name__ == '__main__':
unittest.main(defaultTest='suite')
unittest.main(defaultTest='test_suite')
......@@ -30,7 +30,7 @@ class MinimalNewInsertsTest(ZODBTestBase, InsertMixin):
def suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalNewInsertsTest, 'check'))
suite.addTest(unittest.makeSuite(FullNewInsertsTest, 'check'))
......@@ -39,4 +39,4 @@ def suite():
if __name__ == '__main__':
unittest.main(defaultTest='suite')
unittest.main(defaultTest='test_suite')
......@@ -61,7 +61,7 @@ class FullCommitAndRead(ZODBTestBase, CommitAndRead):
def suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalCommitAndRead, 'check'))
suite.addTest(unittest.makeSuite(FullCommitAndRead, 'check'))
......@@ -70,4 +70,4 @@ def suite():
if __name__ == '__main__':
unittest.main(defaultTest='suite')
unittest.main(defaultTest='test_suite')
......@@ -10,7 +10,7 @@ def suite():
alltests = unittest.TestSuite()
for modname in MODULES:
mod = __import__('test_'+modname)
alltests.addTest(mod.suite())
alltests.addTest(mod.test_suite())
return alltests
......
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