Commit 3154624a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use unittest.main() to allow handle command line arguments.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1789 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ba8f014f
......@@ -24,7 +24,8 @@ from neo.tests.zodb import ZODBTestCase
class BasicTests(ZODBTestCase, StorageTestBase, BasicStorage):
pass
if __name__ == "__main__":
suite = unittest.makeSuite(BasicTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class ConflictTests(ZODBTestCase, StorageTestBase, ConflictResolvingStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(ConflictTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class HistoryTests(ZODBTestCase, StorageTestBase, HistoryStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(HistoryTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -28,5 +28,5 @@ class IteratorTests(ZODBTestCase, StorageTestBase, IteratorStorage,
if __name__ == "__main__":
suite = unittest.makeSuite(IteratorTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class MTTests(ZODBTestCase, StorageTestBase, MTStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(MTTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -29,5 +29,5 @@ class PackableTests(ZODBTestCase, StorageTestBase, PackableStorage,
if __name__ == "__main__":
suite = unittest.makeSuite(PackableTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class PersistentTests(ZODBTestCase, StorageTestBase, PersistentStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(PersistentTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class ReadOnlyTests(ZODBTestCase, StorageTestBase, ReadOnlyStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(ReadOnlyTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class RevisionTests(ZODBTestCase, StorageTestBase, RevisionStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(RevisionTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -26,5 +26,5 @@ class SynchronizationTests(ZODBTestCase, StorageTestBase, SynchronizedStorage):
if __name__ == "__main__":
suite = unittest.makeSuite(SynchronizationTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -28,5 +28,5 @@ class UndoTests(ZODBTestCase, StorageTestBase, TransactionalUndoStorage,
if __name__ == "__main__":
suite = unittest.makeSuite(UndoTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -29,5 +29,5 @@ class VersionTests(ZODBTestCase, StorageTestBase, VersionStorage,
if __name__ == "__main__":
suite = unittest.makeSuite(VersionTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='suite')
......@@ -25,4 +25,4 @@ class NEOZODBTests(ZODBTestCase, testZODB.ZODBTests):
if __name__ == "__main__":
suite = unittest.makeSuite(NEOZODBTests, 'check')
unittest.TextTestRunner().run(suite)
unittest.main(defaultTest='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